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 and Description |
|---|
PropertyValue() |
PropertyValue(Locale language,
String first,
String... rest) |
PropertyValue(String first,
String... rest) |
| Modifier and Type | Method and Description |
|---|---|
PropertyValue |
addValue(Locale language,
String first,
String... rest) |
PropertyValue |
addValue(String first,
String... rest) |
String |
getFirstValue() |
String |
getFirstValue(Locale locale) |
Set<Locale> |
getLocalizations() |
List<String> |
getValues() |
List<String> |
getValues(Locale locale) |
void |
setValues(Locale language,
String firstValue,
String... rest) |
void |
setValues(String first,
String... rest) |
String |
toString() |
public PropertyValue addValue(String first, String... rest)
public PropertyValue addValue(Locale language, String first, String... rest)
public String getFirstValue()
Copyright © 2018. All rights reserved.