Class Predicate


  • public class Predicate
    extends Object
    Specifies the type of a relation
    • Constructor Detail

      • Predicate

        public Predicate()
    • Method Detail

      • getCreated

        public LocalDateTime getCreated()
        Creation date of the predicate
        Returns:
        the creation date of the predicate
      • getDescription

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

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

        public LocalDateTime getLastModified()
        Last modification date of the predicate
        Returns:
        the last modification date of the predicate
      • getValue

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

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

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

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

        public void setLastModified​(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
      • setValue

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