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.LocalDateTimegetCreated()Creation date of the predicateLocalizedTextgetDescription()The multilingual, verbose description of the predicateLocalizedTextgetLabel()The multilingual label of the predicatejava.time.LocalDateTimegetLastModified()Last modification date of the predicatejava.lang.StringgetValue()Value of the predicate, shall be filled in snake_case and lowercasevoidsetCreated(java.time.LocalDateTime created)Sets the creation time (should normally only be done by the persistence layer)voidsetDescription(LocalizedText description)Sets the verbose and multilingual description of the predicatevoidsetLabel(LocalizedText label)Sets the multilingual labelvoidsetLastModified(java.time.LocalDateTime lastModified)Sets the last modification date of the predicate (should normally only be done by the persistence layer)voidsetValue(java.lang.String value)Sets the value of the predicatejava.lang.StringtoString()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:PredicateValue of the predicate, shall be filled in snake_case and lowercase -
setValue
public void setValue(java.lang.String value)Description copied from interface:PredicateSets the value of the predicate -
getLabel
Description copied from interface:PredicateThe multilingual label of the predicate -
setLabel
Description copied from interface:PredicateSets the multilingual label -
getDescription
Description copied from interface:PredicateThe multilingual, verbose description of the predicate- Specified by:
getDescriptionin interfacePredicate- Returns:
- the description
-
setDescription
Description copied from interface:PredicateSets the verbose and multilingual description of the predicate- Specified by:
setDescriptionin interfacePredicate- Parameters:
description- the description
-
getCreated
public java.time.LocalDateTime getCreated()Description copied from interface:PredicateCreation date of the predicate- Specified by:
getCreatedin interfacePredicate- Returns:
- the creation date of the predicate
-
setCreated
public void setCreated(java.time.LocalDateTime created)Description copied from interface:PredicateSets the creation time (should normally only be done by the persistence layer)- Specified by:
setCreatedin interfacePredicate- Parameters:
created- the creation date of the predicate
-
getLastModified
public java.time.LocalDateTime getLastModified()Description copied from interface:PredicateLast modification date of the predicate- Specified by:
getLastModifiedin interfacePredicate- Returns:
- the last modification date of the predicate
-
setLastModified
public void setLastModified(java.time.LocalDateTime lastModified)Description copied from interface:PredicateSets the last modification date of the predicate (should normally only be done by the persistence layer)- Specified by:
setLastModifiedin interfacePredicate- Parameters:
lastModified- the last modification date of the predicate, e.g. "now" when any attribute changes
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-