Package de.digitalcollections.iiif.model
Class PropertyValue
- java.lang.Object
-
- de.digitalcollections.iiif.model.PropertyValue
-
public class PropertyValue extends Object
Type for strings that are intended to be displayed to the user.Is organized as a mapping of languages to one or more values. See http://iiif.io/api/presentation/2.1/#language-of-property-values and http://iiif.io/api/presentation/2.1/#html-markup-in-property-values for more information.
-
-
Constructor Summary
Constructors Constructor Description PropertyValue()PropertyValue(String first, String... rest)PropertyValue(Locale language, String first, String... rest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyValueaddValue(String first, String... rest)PropertyValueaddValue(Locale language, String first, String... rest)StringgetFirstValue()StringgetFirstValue(Locale locale)Set<Locale>getLocalizations()List<String>getValues()List<String>getValues(Locale locale)voidsetValues(String first, String... rest)voidsetValues(Locale language, String firstValue, String... rest)StringtoString()
-
-
-
Method Detail
-
addValue
public PropertyValue addValue(String first, String... rest)
-
addValue
public PropertyValue addValue(Locale language, String first, String... rest)
-
getFirstValue
public String getFirstValue()
-
-