public class ChoiceItem extends Label
labels
with an associated value suitable for
usage as a leaf entry in a hierarchy of possible choices. Selecting a choice
item in such a hierarchy is equivalent to selecting the value associated with
that item.Modifier and Type | Field and Description |
---|---|
static String |
MY_URI |
static String |
PROP_ITEM_VALUE
Property for accessing the value associated with a choice item.
|
PROP_ICON_URL
PROP_APPEARANCE
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, NAMESPACE_PREFIX, ns_delim_index, PROP_INVOLVED_HUMAN_USER, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, SERVICE_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uri, VOCABULARY_NAMESPACE
Constructor and Description |
---|
ChoiceItem()
For use by de-serializers only.
|
ChoiceItem(String labelText,
String iconURL,
Object value)
Constructs a new choice item.
|
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
Returns the value associated with this choice item.
|
getIconURL, getText, setProperty, toString
addAppearanceRecommendation, getAppearanceRecommendations
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toStringRecursive, toStringRecursive, unliteral
public static final String MY_URI
public static final String PROP_ITEM_VALUE
public ChoiceItem()
public ChoiceItem(String labelText, String iconURL, Object value)
labelText
- see Label.Label(String, String)
iconURL
- see Label.Label(String, String)
value
- The value to be associated with this choice item.public Object getValue()
Copyright © 2018 universAAL Consortium. All rights reserved.