net.ontopia.topicmaps.impl.tmapi2
Class DatatypeAwareImpl

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
All Implemented Interfaces:
org.tmapi.core.Construct, org.tmapi.core.DatatypeAware, org.tmapi.core.Reifiable, org.tmapi.core.Scoped
Direct Known Subclasses:
OccurrenceImpl, VariantImpl

public abstract class DatatypeAwareImpl
extends ScopedImpl
implements org.tmapi.core.DatatypeAware

INTERNAL: OKS->TMAPI 2 object wrapper.


Field Summary
protected  TopicMapImpl topicMap
           
 
Constructor Summary
DatatypeAwareImpl(TopicMapImpl topicMap)
           
 
Method Summary
 void addItemIdentifier(org.tmapi.core.Locator iid)
           
 BigDecimal decimalValue()
           
 boolean equals(Object obj)
           
 float floatValue()
           
 String getId()
           
 Set<org.tmapi.core.Locator> getItemIdentifiers()
           
 TopicMapImpl getTopicMap()
           
 int hashCode()
           
 BigInteger integerValue()
           
 int intValue()
           
 long longValue()
           
 void remove()
           
 void removeItemIdentifier(org.tmapi.core.Locator iid)
           
 void setValue(BigDecimal value)
           
 void setValue(BigInteger value)
           
 void setValue(float value)
           
 void setValue(int value)
           
 void setValue(long value)
           
 void setValue(String value, org.tmapi.core.Locator datatype)
           
protected abstract  void setValue(String value, LocatorIF datatype)
          Sets the value / datatype pair.
 
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ScopedImpl
addTheme, getScope, removeTheme
 
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.DatatypeAware
getDatatype, getValue, locatorValue, setValue, setValue
 
Methods inherited from interface org.tmapi.core.Reifiable
getReifier, setReifier
 
Methods inherited from interface org.tmapi.core.Scoped
addTheme, getScope, removeTheme
 
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, getParent, getTopicMap, hashCode, remove, removeItemIdentifier
 

Field Detail

topicMap

protected TopicMapImpl topicMap
Constructor Detail

DatatypeAwareImpl

public DatatypeAwareImpl(TopicMapImpl topicMap)
Method Detail

setValue

protected abstract void setValue(String value,
                                 LocatorIF datatype)
Sets the value / datatype pair. Methods which invoke this method have to ensure that value and datatype is never null.


decimalValue

public BigDecimal decimalValue()
Specified by:
decimalValue in interface org.tmapi.core.DatatypeAware

floatValue

public float floatValue()
Specified by:
floatValue in interface org.tmapi.core.DatatypeAware

intValue

public int intValue()
Specified by:
intValue in interface org.tmapi.core.DatatypeAware

integerValue

public BigInteger integerValue()
Specified by:
integerValue in interface org.tmapi.core.DatatypeAware

longValue

public long longValue()
Specified by:
longValue in interface org.tmapi.core.DatatypeAware

setValue

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

setValue

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

setValue

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

setValue

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

setValue

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

setValue

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

getId

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

getItemIdentifiers

public 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

remove

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

equals

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

hashCode

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


Copyright © 2000-2012 Ontopia.