Class Predicate
- java.lang.Object
-
- de.digitalcollections.model.UniqueObject
-
- de.digitalcollections.model.relation.Predicate
-
public class Predicate extends UniqueObject
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
Constructors Constructor Description Predicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizedTextgetDescription()The multilingual, verbose description of the predicateLocalizedTextgetLabel()The multilingual label of the predicateStringgetValue()Value of the predicate, shall be filled in snake_case and lowercasevoidsetDescription(LocalizedText description)Sets the verbose and multilingual description of the predicatevoidsetLabel(LocalizedText label)Sets the multilingual labelvoidsetValue(String value)Sets the value of the predicateStringtoString()-
Methods inherited from class de.digitalcollections.model.UniqueObject
equals, getCreated, getLastModified, getUuid, hashCode, init, setCreated, setLastModified, setUuid
-
-
-
-
Method Detail
-
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
-
getValue
public String getValue()
Value of the predicate, shall be filled in snake_case and lowercase- Returns:
- value, e.g.
is_author_of
-
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
-
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
-
-