de.topicmapslab.majortom.core
Class DataTypeAwareImpl

java.lang.Object
  extended by de.topicmapslab.majortom.core.ConstructImpl
      extended by de.topicmapslab.majortom.core.ReifiableImpl
          extended by de.topicmapslab.majortom.core.ScopeableImpl
              extended by de.topicmapslab.majortom.core.DataTypeAwareImpl
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.IDatatypeAware, de.topicmapslab.majortom.model.core.IReifiable, de.topicmapslab.majortom.model.core.IScopable, java.io.Serializable, java.lang.Comparable<de.topicmapslab.majortom.model.core.IConstruct>, 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 ScopeableImpl
implements de.topicmapslab.majortom.model.core.IDatatypeAware

Sven Krosse

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
protected DataTypeAwareImpl(de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity identity, de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.IConstruct parent)
          constructor
 
Method Summary
 java.lang.Boolean booleanValue()
          
 de.topicmapslab.geotype.wgs84.Wgs84Coordinate coordinateValue()
          
 java.util.Calendar dateTimeValue()
          
 java.math.BigDecimal decimalValue()
          
 java.lang.Double doubleValue()
          
 float floatValue()
          
 org.tmapi.core.Locator getDatatype()
          
 java.lang.String getValue()
          
 java.math.BigInteger integerValue()
          
 int intValue()
          
 org.tmapi.core.Locator locatorValue()
          
 long longValue()
          
 void setValue(java.math.BigDecimal value)
          
 void setValue(java.math.BigInteger value)
          
 void setValue(java.lang.Boolean value)
          
 void setValue(java.util.Calendar value)
          
 void setValue(java.lang.Double value)
          
 void setValue(float value)
          
 void setValue(int value)
          
 void setValue(org.tmapi.core.Locator value)
          
 void setValue(long value)
          
 void setValue(java.lang.String value)
          
 void setValue(java.lang.String value, org.tmapi.core.Locator locator)
          
 void setValue(java.net.URI value)
          
 void setValue(de.topicmapslab.geotype.wgs84.Wgs84Circuit value)
          
 void setValue(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value)
          
 de.topicmapslab.geotype.wgs84.Wgs84Circuit surfaceValue()
          
 java.net.URI uriValue()
          
 
Methods inherited from class de.topicmapslab.majortom.core.ScopeableImpl
addTheme, getScope, getScopeObject, removeTheme
 
Methods inherited from class de.topicmapslab.majortom.core.ReifiableImpl
getReifier, setReifier
 
Methods inherited from class de.topicmapslab.majortom.core.ConstructImpl
addItemIdentifier, compareTo, equals, getId, getIdentity, getItemIdentifiers, getParent, getTopicMap, hashCode, isRemoved, longId, remove, remove, removeItemIdentifier, setRemoved
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
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
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IConstruct
getTopicMap, isRemoved, longId, remove
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IScopable
getTopicMap
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DataTypeAwareImpl

protected DataTypeAwareImpl(de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity identity,
                            de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                            de.topicmapslab.majortom.model.core.IConstruct parent)
constructor

Parameters:
identity - the ITopicMapStoreIdentity
topicMap - the topic map
parent - the parent construct
Method Detail

booleanValue

public java.lang.Boolean booleanValue()
                               throws java.text.ParseException

Specified by:
booleanValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware
Throws:
java.text.ParseException

coordinateValue

public de.topicmapslab.geotype.wgs84.Wgs84Coordinate coordinateValue()
                                                              throws java.text.ParseException

Specified by:
coordinateValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware
Throws:
java.text.ParseException

dateTimeValue

public java.util.Calendar dateTimeValue()
                                 throws java.text.ParseException

Specified by:
dateTimeValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware
Throws:
java.text.ParseException

doubleValue

public java.lang.Double doubleValue()
                             throws java.lang.NumberFormatException

Specified by:
doubleValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware
Throws:
java.lang.NumberFormatException

setValue

public void setValue(java.lang.Boolean value)

Specified by:
setValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware

setValue

public void setValue(java.lang.Double value)

Specified by:
setValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware

setValue

public void setValue(java.util.Calendar value)

Specified by:
setValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware

setValue

public void setValue(java.net.URI value)

Specified by:
setValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware

setValue

public void setValue(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value)

Specified by:
setValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware

uriValue

public java.net.URI uriValue()
                      throws java.net.URISyntaxException

Specified by:
uriValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware
Throws:
java.net.URISyntaxException

decimalValue

public java.math.BigDecimal decimalValue()

Specified by:
decimalValue in interface org.tmapi.core.DatatypeAware

floatValue

public float floatValue()

Specified by:
floatValue in interface org.tmapi.core.DatatypeAware

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

intValue

public int intValue()

Specified by:
intValue in interface org.tmapi.core.DatatypeAware

integerValue

public java.math.BigInteger integerValue()

Specified by:
integerValue in interface org.tmapi.core.DatatypeAware

locatorValue

public org.tmapi.core.Locator locatorValue()

Specified by:
locatorValue in interface org.tmapi.core.DatatypeAware

longValue

public long longValue()

Specified by:
longValue in interface org.tmapi.core.DatatypeAware

surfaceValue

public de.topicmapslab.geotype.wgs84.Wgs84Circuit surfaceValue()
                                                        throws java.text.ParseException

Specified by:
surfaceValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware
Throws:
java.text.ParseException

setValue

public void setValue(java.lang.String value)
              throws org.tmapi.core.ModelConstraintException

Specified by:
setValue in interface org.tmapi.core.DatatypeAware
Throws:
org.tmapi.core.ModelConstraintException

setValue

public void setValue(org.tmapi.core.Locator value)
              throws org.tmapi.core.ModelConstraintException

Specified by:
setValue in interface org.tmapi.core.DatatypeAware
Throws:
org.tmapi.core.ModelConstraintException

setValue

public void setValue(java.math.BigDecimal value)
              throws org.tmapi.core.ModelConstraintException

Specified by:
setValue in interface org.tmapi.core.DatatypeAware
Throws:
org.tmapi.core.ModelConstraintException

setValue

public void setValue(java.math.BigInteger value)
              throws org.tmapi.core.ModelConstraintException

Specified by:
setValue in interface org.tmapi.core.DatatypeAware
Throws:
org.tmapi.core.ModelConstraintException

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(de.topicmapslab.geotype.wgs84.Wgs84Circuit value)

Specified by:
setValue in interface de.topicmapslab.majortom.model.core.IDatatypeAware

setValue

public void setValue(java.lang.String value,
                     org.tmapi.core.Locator locator)
              throws org.tmapi.core.ModelConstraintException

Specified by:
setValue in interface org.tmapi.core.DatatypeAware
Throws:
org.tmapi.core.ModelConstraintException