Class PredicateImpl

java.lang.Object
de.digitalcollections.model.impl.relations.PredicateImpl
All Implemented Interfaces:
Predicate

public class PredicateImpl
extends java.lang.Object
implements Predicate
  • Constructor Summary

    Constructors
    Constructor Description
    PredicateImpl()  
  • 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
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PredicateImpl

      public PredicateImpl()
  • Method Details

    • getValue

      public java.lang.String getValue()
      Description copied from interface: Predicate
      Value of the predicate, shall be filled in snake_case and lowercase
      Specified by:
      getValue in interface Predicate
      Returns:
      value, e.g. is_author_of
    • setValue

      public void setValue​(java.lang.String value)
      Description copied from interface: Predicate
      Sets the value of the predicate
      Specified by:
      setValue in interface Predicate
      Parameters:
      value - the value, preferrably in snake_case and lowercase, e.g. is_author_of
    • getLabel

      public LocalizedText getLabel()
      Description copied from interface: Predicate
      The multilingual label of the predicate
      Specified by:
      getLabel in interface Predicate
      Returns:
      multilingual label
    • setLabel

      public void setLabel​(LocalizedText label)
      Description copied from interface: Predicate
      Sets the multilingual label
      Specified by:
      setLabel in interface Predicate
      Parameters:
      label - the label as LocalizedText
    • getDescription

      public LocalizedText getDescription()
      Description copied from interface: Predicate
      The multilingual, verbose description of the predicate
      Specified by:
      getDescription in interface Predicate
      Returns:
      the description
    • setDescription

      public void setDescription​(LocalizedText description)
      Description copied from interface: Predicate
      Sets the verbose and multilingual description of the predicate
      Specified by:
      setDescription in interface Predicate
      Parameters:
      description - the description
    • getCreated

      public java.time.LocalDateTime getCreated()
      Description copied from interface: Predicate
      Creation date of the predicate
      Specified by:
      getCreated in interface Predicate
      Returns:
      the creation date of the predicate
    • setCreated

      public void setCreated​(java.time.LocalDateTime created)
      Description copied from interface: Predicate
      Sets the creation time (should normally only be done by the persistence layer)
      Specified by:
      setCreated in interface Predicate
      Parameters:
      created - the creation date of the predicate
    • getLastModified

      public java.time.LocalDateTime getLastModified()
      Description copied from interface: Predicate
      Last modification date of the predicate
      Specified by:
      getLastModified in interface Predicate
      Returns:
      the last modification date of the predicate
    • setLastModified

      public void setLastModified​(java.time.LocalDateTime lastModified)
      Description copied from interface: Predicate
      Sets the last modification date of the predicate (should normally only be done by the persistence layer)
      Specified by:
      setLastModified in interface Predicate
      Parameters:
      lastModified - the last modification date of the predicate, e.g. "now" when any attribute changes
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object