EXIficient

com.siemens.ct.exi.datatype
Class AbstractDatatype

java.lang.Object
  extended by com.siemens.ct.exi.datatype.AbstractDatatype
All Implemented Interfaces:
Datatype
Direct Known Subclasses:
AbstractBinaryDatatype, BigIntegerDatatype, BooleanDatatype, BooleanPatternDatatype, DatetimeDatatype, DecimalDatatype, DoubleDatatype, EnumerationDatatype, FloatDatatype, IntegerDatatype, ListDatatype, LongDatatype, NBitBigIntegerDatatype, NBitIntegerDatatype, NBitLongDatatype, RestrictedCharacterSetDatatype, StringDatatype, UnsignedBigIntegerDatatype, UnsignedIntegerDatatype, UnsignedLongDatatype

public abstract class AbstractDatatype
extends java.lang.Object
implements Datatype

TODO Description

Version:
0.4.20081111
Author:
Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com

Constructor Summary
AbstractDatatype(BuiltInType builtInType, javax.xml.namespace.QName datatypeIdentifier)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 javax.xml.namespace.QName getDatatypeIdentifier()
           
 BuiltInType getDefaultBuiltInType()
           
 RestrictedCharacterSet getRestrictedCharacterSet()
           
 int hashCode()
           
 boolean isValidRCS(java.lang.String value)
           
 Value readValueRCS(RestrictedCharacterSetDatatype rcsDecoder, DecoderChannel valueChannel, StringDecoder stringDecoder, javax.xml.namespace.QName context)
           
 java.lang.String toString()
           
 void writeValueRCS(RestrictedCharacterSetDatatype rcsEncoder, EncoderChannel valueChannel, StringEncoder stringEncoder, javax.xml.namespace.QName context)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.siemens.ct.exi.datatype.Datatype
isValid, readValue, writeValue
 

Constructor Detail

AbstractDatatype

public AbstractDatatype(BuiltInType builtInType,
                        javax.xml.namespace.QName datatypeIdentifier)
Method Detail

getDefaultBuiltInType

public BuiltInType getDefaultBuiltInType()
Specified by:
getDefaultBuiltInType in interface Datatype

getDatatypeIdentifier

public javax.xml.namespace.QName getDatatypeIdentifier()
Specified by:
getDatatypeIdentifier in interface Datatype

getRestrictedCharacterSet

public RestrictedCharacterSet getRestrictedCharacterSet()
Specified by:
getRestrictedCharacterSet in interface Datatype

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isValidRCS

public boolean isValidRCS(java.lang.String value)
Specified by:
isValidRCS in interface Datatype

writeValueRCS

public void writeValueRCS(RestrictedCharacterSetDatatype rcsEncoder,
                          EncoderChannel valueChannel,
                          StringEncoder stringEncoder,
                          javax.xml.namespace.QName context)
                   throws java.io.IOException
Specified by:
writeValueRCS in interface Datatype
Throws:
java.io.IOException

readValueRCS

public Value readValueRCS(RestrictedCharacterSetDatatype rcsDecoder,
                          DecoderChannel valueChannel,
                          StringDecoder stringDecoder,
                          javax.xml.namespace.QName context)
                   throws java.io.IOException
Specified by:
readValueRCS in interface Datatype
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

EXIficient