Class VariantImpl
- java.lang.Object
-
- net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
-
- net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
-
- net.ontopia.topicmaps.impl.tmapi2.DatatypeAwareImpl
-
- net.ontopia.topicmaps.impl.tmapi2.VariantImpl
-
- All Implemented Interfaces:
org.tmapi.core.Construct,org.tmapi.core.DatatypeAware,org.tmapi.core.Reifiable,org.tmapi.core.Scoped,org.tmapi.core.Variant
public class VariantImpl extends DatatypeAwareImpl implements org.tmapi.core.Variant
INTERNAL: OKS->TMAPI 2 object wrapper.
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicMapImpltopicMap
-
Constructor Summary
Constructors Constructor Description VariantImpl(TopicMapImpl topicMap, NameImpl parent, VariantNameIF variant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItemIdentifier(org.tmapi.core.Locator iid)voidaddTheme(org.tmapi.core.Topic theme)booleanequals(Object obj)org.tmapi.core.LocatorgetDatatype()Collection<org.tmapi.core.Topic>getExplicitScope()StringgetId()Set<org.tmapi.core.Locator>getItemIdentifiers()org.tmapi.core.NamegetParent()TopicMapImplgetTopicMap()StringgetValue()VariantNameIFgetWrapped()inthashCode()org.tmapi.core.LocatorlocatorValue()voidremove()voidremoveItemIdentifier(org.tmapi.core.Locator iid)voidremoveTheme(org.tmapi.core.Topic theme)voidsetExplicitScope(Collection<org.tmapi.core.Topic> explicitScope)voidsetValue(String value)protected voidsetValue(String value, LocatorIF datatype)Sets the value / datatype pair.voidsetValue(org.tmapi.core.Locator value)-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.DatatypeAwareImpl
decimalValue, floatValue, integerValue, intValue, longValue, setValue, setValue, setValue, setValue, setValue, setValue
-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
getScope
-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
getReifier, setReifier
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, getTopicMap, hashCode, removeItemIdentifier
-
-
-
-
Field Detail
-
topicMap
protected TopicMapImpl topicMap
-
-
Constructor Detail
-
VariantImpl
public VariantImpl(TopicMapImpl topicMap, NameImpl parent, VariantNameIF variant)
-
-
Method Detail
-
setValue
protected void setValue(String value, LocatorIF datatype)
Description copied from class:DatatypeAwareImplSets the value / datatype pair. Methods which invoke this method have to ensure that value and datatype is never null.- Specified by:
setValuein classDatatypeAwareImpl
-
getWrapped
public VariantNameIF getWrapped()
-
getParent
public org.tmapi.core.Name getParent()
- Specified by:
getParentin interfaceorg.tmapi.core.Construct- Specified by:
getParentin interfaceorg.tmapi.core.Variant
-
getDatatype
public org.tmapi.core.Locator getDatatype()
- Specified by:
getDatatypein interfaceorg.tmapi.core.DatatypeAware
-
getValue
public String getValue()
- Specified by:
getValuein interfaceorg.tmapi.core.DatatypeAware
-
locatorValue
public org.tmapi.core.Locator locatorValue()
- Specified by:
locatorValuein interfaceorg.tmapi.core.DatatypeAware
-
setValue
public void setValue(String value)
- Specified by:
setValuein interfaceorg.tmapi.core.DatatypeAware
-
setValue
public void setValue(org.tmapi.core.Locator value)
- Specified by:
setValuein interfaceorg.tmapi.core.DatatypeAware
-
removeTheme
public void removeTheme(org.tmapi.core.Topic theme)
- Specified by:
removeThemein interfaceorg.tmapi.core.Scoped- Overrides:
removeThemein classScopedImpl
-
addTheme
public void addTheme(org.tmapi.core.Topic theme)
- Specified by:
addThemein interfaceorg.tmapi.core.Scoped- Overrides:
addThemein classScopedImpl
-
setExplicitScope
public void setExplicitScope(Collection<org.tmapi.core.Topic> explicitScope)
-
getExplicitScope
public Collection<org.tmapi.core.Topic> getExplicitScope()
-
remove
public void remove()
- Specified by:
removein interfaceorg.tmapi.core.Construct
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.tmapi.core.Construct
-
getItemIdentifiers
public Set<org.tmapi.core.Locator> getItemIdentifiers()
- Specified by:
getItemIdentifiersin interfaceorg.tmapi.core.Construct
-
addItemIdentifier
public void addItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
addItemIdentifierin interfaceorg.tmapi.core.Construct
-
removeItemIdentifier
public void removeItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
removeItemIdentifierin interfaceorg.tmapi.core.Construct
-
getTopicMap
public TopicMapImpl getTopicMap()
- Specified by:
getTopicMapin interfaceorg.tmapi.core.Construct
-
equals
public boolean equals(Object obj)
-
-