public interface VariantNameIF extends NameIF, ScopedIF, ReifiableIF
value
property, handled using TopicNameIF methods,
and correponding to the contents of the 'variantName /
resourceData' element in XTM 1.0) or a locator which identifies a
resource (corresponding to a 'variantName' element with a
'resourceRef' child element in XTM 1.0). If a locator is present,
the value property is null
, and the locator of the
resource appears in the locator property of the variantName.Modifier and Type | Field and Description |
---|---|
static String |
EVENT_ADD_THEME |
static String |
EVENT_ADDED |
static String |
EVENT_REMOVE_THEME |
static String |
EVENT_REMOVED |
static String |
EVENT_SET_DATATYPE |
static String |
EVENT_SET_VALUE |
EVENT_SET_REIFIER
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT
Modifier and Type | Method and Description |
---|---|
LocatorIF |
getDataType()
PUBLIC: Gets the data type of this variant.
|
long |
getLength()
PUBLIC: Returns the length of the variant value.
|
LocatorIF |
getLocator()
PUBLIC: Returns a LocatorIF representation of the variant
value.
|
Reader |
getReader()
PUBLIC: Returns a Reader that allows you to stream the string
representation of this variant.
|
TopicNameIF |
getTopicName()
PUBLIC: Gets the topic name to which this variant name belongs.
|
String |
getValue()
PUBLIC: Gets the string representation of this variant.
|
void |
setLocator(LocatorIF locator)
PUBLIC: Same as
setValue(locator.getAddress(),
DataTypes.TYPE_URI) . |
void |
setReader(Reader value,
long length,
LocatorIF datatype)
PUBLIC: Sets the value and the data type of this variant using
a reader.
|
void |
setValue(String value)
PUBLIC: Same as
setValue(value,
DataTypes.TYPE_STRING) . |
void |
setValue(String value,
LocatorIF datatype)
PUBLIC: Sets the value and the data type of this variant using
a string.
|
addTheme, getScope, removeTheme
getReifier, setReifier
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier
static final String EVENT_ADDED
static final String EVENT_REMOVED
static final String EVENT_SET_VALUE
static final String EVENT_SET_DATATYPE
static final String EVENT_ADD_THEME
static final String EVENT_REMOVE_THEME
TopicNameIF getTopicName()
LocatorIF getDataType()
String getValue()
Reader getReader()
void setValue(String value)
setValue(value,
DataTypes.TYPE_STRING)
. This method is here primarily for
backwards compatibility.LocatorIF getLocator()
DataType.TYPE_URI
). This method
is here primarily for backwards compatibility.void setLocator(LocatorIF locator)
setValue(locator.getAddress(),
DataTypes.TYPE_URI)
. This method is here primarily for
backwards compatibility.void setValue(String value, LocatorIF datatype)
void setReader(Reader value, long length, LocatorIF datatype)
long getLength()