|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VariantNameIF
PUBLIC: Implemented by objects representing variant names for topics. Corresponds to 'variant' elements in the XTM 1.0 syntax; a variant name may belong directly to a topic name, or indirectly via another variant name.
A variant name either has a literal value (represented directly by thevalue
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.
Method Summary | |
---|---|
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. |
java.io.Reader |
getReader()
PUBLIC: Returns a Reader that allows you to stream the string representation of this variant. |
TopicIF |
getTopic()
PUBLIC: Gets the topic to which this variant name belongs. |
TopicNameIF |
getTopicName()
PUBLIC: Gets the topic name to which this variant name belongs. |
java.lang.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(java.io.Reader value,
long length,
LocatorIF datatype)
PUBLIC: Sets the value and the data type of this variant using a reader. |
void |
setValue(java.lang.String value)
PUBLIC: Same as setValue(value,
DataTypes.TYPE_STRING) . |
void |
setValue(java.lang.String value,
LocatorIF datatype)
PUBLIC: Sets the value and the data type of this variant using a string. |
Methods inherited from interface net.ontopia.topicmaps.core.ScopedIF |
---|
addTheme, getScope, removeTheme |
Methods inherited from interface net.ontopia.topicmaps.core.ReifiableIF |
---|
getReifier, setReifier |
Methods inherited from interface net.ontopia.topicmaps.core.TMObjectIF |
---|
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier |
Method Detail |
---|
TopicNameIF getTopicName()
TopicIF getTopic()
LocatorIF getDataType()
java.lang.String getValue()
java.io.Reader getReader()
void setValue(java.lang.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(java.lang.String value, LocatorIF datatype)
void setReader(java.io.Reader value, long length, LocatorIF datatype)
long getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |