net.ontopia.topicmaps.impl.tmapi2
Class VariantImpl

java.lang.Object
  extended by net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
      extended by net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
          extended by net.ontopia.topicmaps.impl.tmapi2.DatatypeAwareImpl
              extended by 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
protected  TopicMapImpl topicMap
           
 
Constructor Summary
VariantImpl(TopicMapImpl topicMap, NameImpl parent, VariantNameIF variant)
           
 
Method Summary
 void addItemIdentifier(org.tmapi.core.Locator iid)
           
 void addTheme(org.tmapi.core.Topic theme)
           
 boolean equals(java.lang.Object obj)
           
 org.tmapi.core.Locator getDatatype()
           
 java.util.Collection<org.tmapi.core.Topic> getExplicitScope()
           
 java.lang.String getId()
           
 java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
           
 org.tmapi.core.Name getParent()
           
 TopicMapImpl getTopicMap()
           
 java.lang.String getValue()
           
 VariantNameIF getWrapped()
           
 int hashCode()
           
 org.tmapi.core.Locator locatorValue()
           
 void remove()
           
 void removeItemIdentifier(org.tmapi.core.Locator iid)
           
 void removeTheme(org.tmapi.core.Topic theme)
           
 void setExplicitScope(java.util.Collection<org.tmapi.core.Topic> explicitScope)
           
 void setValue(org.tmapi.core.Locator value)
           
 void setValue(java.lang.String value)
           
protected  void setValue(java.lang.String value, LocatorIF datatype)
          Sets the value / datatype pair.
 
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.Variant
getScope
 
Methods inherited from interface org.tmapi.core.DatatypeAware
decimalValue, floatValue, integerValue, intValue, longValue, setValue, setValue, setValue, setValue, setValue, setValue
 
Methods inherited from interface org.tmapi.core.Reifiable
getReifier, setReifier
 
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(java.lang.String value,
                        LocatorIF datatype)
Description copied from class: DatatypeAwareImpl
Sets the value / datatype pair. Methods which invoke this method have to ensure that value and datatype is never null.

Specified by:
setValue in class DatatypeAwareImpl

getWrapped

public VariantNameIF getWrapped()

getParent

public org.tmapi.core.Name getParent()
Specified by:
getParent in interface org.tmapi.core.Construct
Specified by:
getParent in interface org.tmapi.core.Variant

getDatatype

public org.tmapi.core.Locator getDatatype()
Specified by:
getDatatype in interface org.tmapi.core.DatatypeAware

getValue

public java.lang.String getValue()
Specified by:
getValue in interface org.tmapi.core.DatatypeAware

locatorValue

public org.tmapi.core.Locator locatorValue()
Specified by:
locatorValue in interface org.tmapi.core.DatatypeAware

setValue

public void setValue(java.lang.String value)
Specified by:
setValue in interface org.tmapi.core.DatatypeAware

setValue

public void setValue(org.tmapi.core.Locator value)
Specified by:
setValue in interface org.tmapi.core.DatatypeAware

removeTheme

public void removeTheme(org.tmapi.core.Topic theme)
Specified by:
removeTheme in interface org.tmapi.core.Scoped
Overrides:
removeTheme in class ScopedImpl

addTheme

public void addTheme(org.tmapi.core.Topic theme)
Specified by:
addTheme in interface org.tmapi.core.Scoped
Overrides:
addTheme in class ScopedImpl

setExplicitScope

public void setExplicitScope(java.util.Collection<org.tmapi.core.Topic> explicitScope)

getExplicitScope

public java.util.Collection<org.tmapi.core.Topic> getExplicitScope()

remove

public void remove()
Specified by:
remove in interface org.tmapi.core.Construct

getId

public java.lang.String getId()
Specified by:
getId in interface org.tmapi.core.Construct

getItemIdentifiers

public java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
Specified by:
getItemIdentifiers in interface org.tmapi.core.Construct

addItemIdentifier

public void addItemIdentifier(org.tmapi.core.Locator iid)
Specified by:
addItemIdentifier in interface org.tmapi.core.Construct

removeItemIdentifier

public void removeItemIdentifier(org.tmapi.core.Locator iid)
Specified by:
removeItemIdentifier in interface org.tmapi.core.Construct

getTopicMap

public TopicMapImpl getTopicMap()
Specified by:
getTopicMap in interface org.tmapi.core.Construct

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface org.tmapi.core.Construct
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface org.tmapi.core.Construct
Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2012 Ontopia.