Class Predicate
- java.lang.Object
-
- de.digitalcollections.model.relation.Predicate
-
public class Predicate extends Object
Specifies the type of a relation
-
-
Constructor Summary
Constructors Constructor Description Predicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDateTimegetCreated()Creation date of the predicateLocalizedTextgetDescription()The multilingual, verbose description of the predicateLocalizedTextgetLabel()The multilingual label of the predicateLocalDateTimegetLastModified()Last modification date of the predicateStringgetValue()Value of the predicate, shall be filled in snake_case and lowercasevoidsetCreated(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(LocalDateTime lastModified)Sets the last modification date of the predicate (should normally only be done by the persistence layer)voidsetValue(String value)Sets the value of the predicateStringtoString()
-
-
-
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
-
-