Class 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 Details

  • Constructor Details

    • DatatypeAwareImpl

      public DatatypeAwareImpl(TopicMapImpl topicMap)
  • Method Details

    • 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
    • getWrapped

      protected abstract TMObjectIF getWrapped()
    • 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