Interface Predicate

All Known Implementing Classes:
PredicateImpl

public interface Predicate
Specifies the type of a relation
  • Method Summary

    Modifier and Type Method Description
    java.time.LocalDateTime getCreated()
    Creation date of the predicate
    LocalizedText getDescription()
    The multilingual, verbose description of the predicate
    LocalizedText getLabel()
    The multilingual label of the predicate
    java.time.LocalDateTime getLastModified()
    Last modification date of the predicate
    java.lang.String getValue()
    Value of the predicate, shall be filled in snake_case and lowercase
    void setCreated​(java.time.LocalDateTime created)
    Sets the creation time (should normally only be done by the persistence layer)
    void setDescription​(LocalizedText description)
    Sets the verbose and multilingual description of the predicate
    void setLabel​(LocalizedText label)
    Sets the multilingual label
    void setLastModified​(java.time.LocalDateTime lastModified)
    Sets the last modification date of the predicate (should normally only be done by the persistence layer)
    void setValue​(java.lang.String value)
    Sets the value of the predicate
  • Method Details

    • getValue

      java.lang.String getValue()
      Value of the predicate, shall be filled in snake_case and lowercase
      Returns:
      value, e.g. is_author_of
    • setValue

      void setValue​(java.lang.String value)
      Sets the value of the predicate
      Parameters:
      value - the value, preferrably in snake_case and lowercase, e.g. is_author_of
    • getLabel

      LocalizedText getLabel()
      The multilingual label of the predicate
      Returns:
      multilingual label
    • setLabel

      void setLabel​(LocalizedText label)
      Sets the multilingual label
      Parameters:
      label - the label as LocalizedText
    • getDescription

      LocalizedText getDescription()
      The multilingual, verbose description of the predicate
      Returns:
      the description
    • setDescription

      void setDescription​(LocalizedText description)
      Sets the verbose and multilingual description of the predicate
      Parameters:
      description - the description
    • getCreated

      java.time.LocalDateTime getCreated()
      Creation date of the predicate
      Returns:
      the creation date of the predicate
    • setCreated

      void setCreated​(java.time.LocalDateTime created)
      Sets the creation time (should normally only be done by the persistence layer)
      Parameters:
      created - the creation date of the predicate
    • getLastModified

      java.time.LocalDateTime getLastModified()
      Last modification date of the predicate
      Returns:
      the last modification date of the predicate
    • setLastModified

      void setLastModified​(java.time.LocalDateTime lastModified)
      Sets the last modification date of the predicate (should normally only be done by the persistence layer)
      Parameters:
      lastModified - the last modification date of the predicate, e.g. "now" when any attribute changes