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.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 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
Sets the multilingual label- Parameters:
label- the label as LocalizedText
-
getDescription
LocalizedText getDescription()The multilingual, verbose description of the predicate- Returns:
- the description
-
setDescription
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
-