Class Predicate
java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.relation.Predicate
Specifies the type of a relation
-
Nested Class Summary
Nested classes/interfaces inherited from class de.digitalcollections.model.UniqueObject
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,
B extends UniqueObject.UniqueObjectBuilder<C, B>> -
Field Summary
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe multilingual, verbose description of the predicategetLabel()
The multilingual label of the predicategetValue()
Value of the predicate, shall be filled in snake_case and lowercasevoid
setDescription
(LocalizedText description) Sets the verbose and multilingual description of the predicatevoid
setLabel
(LocalizedText label) Sets the multilingual labelvoid
Sets the value of the predicatetoString()
Methods inherited from class de.digitalcollections.model.UniqueObject
equals, getCreated, getLastModified, getUuid, hashCode, init, isPersisted, setCreated, setLastModified, setUuid
-
Constructor Details
-
Predicate
public Predicate() -
Predicate
-
-
Method Details
-
getDescription
The multilingual, verbose description of the predicate- Returns:
- the description
-
getLabel
The multilingual label of the predicate- Returns:
- multilingual label
-
getValue
Value of the predicate, shall be filled in snake_case and lowercase- Returns:
- value, e.g.
is_author_of
-
setDescription
Sets the verbose and multilingual description of the predicate- Parameters:
description
- the description
-
setLabel
Sets the multilingual label- Parameters:
label
- the label as LocalizedText
-
setValue
Sets the value of the predicate- Parameters:
value
- the value, preferrably in snake_case and lowercase, e.g.is_author_of
-
toString
-