com.siemens.ct.exi.datatype
Class EnumerationDatatype
java.lang.Object
com.siemens.ct.exi.datatype.AbstractDatatype
com.siemens.ct.exi.datatype.EnumerationDatatype
- All Implemented Interfaces:
- Datatype
public class EnumerationDatatype
- extends AbstractDatatype
TODO Description
- Version:
- 0.4.20081117
- Author:
- Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com
Method Summary |
int |
getCodingLength()
|
int |
getEnumerationSize()
|
Value |
getEnumerationValueAsCharArray(int index)
|
java.lang.String |
getEnumerationValueAsString(int index)
|
boolean |
isValid(java.lang.String value)
|
boolean |
isValidRCS(java.lang.String value)
|
Value |
readValue(DecoderChannel valueChannel,
StringDecoder stringDecoder,
javax.xml.namespace.QName context)
|
Value |
readValueRCS(RestrictedCharacterSetDatatype rcsDecoder,
DecoderChannel valueChannel,
StringDecoder stringDecoder,
javax.xml.namespace.QName context)
|
void |
writeValue(EncoderChannel valueChannel,
StringEncoder stringEncoder,
javax.xml.namespace.QName context)
|
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 |
EnumerationDatatype
public EnumerationDatatype(org.apache.xerces.xs.StringList enumValues)
getEnumerationValueAsString
public java.lang.String getEnumerationValueAsString(int index)
getEnumerationValueAsCharArray
public Value getEnumerationValueAsCharArray(int index)
getEnumerationSize
public int getEnumerationSize()
getCodingLength
public int getCodingLength()
isValid
public boolean isValid(java.lang.String value)
isValidRCS
public boolean isValidRCS(java.lang.String value)
- Specified by:
isValidRCS
in interface Datatype
- Overrides:
isValidRCS
in class AbstractDatatype
writeValue
public void writeValue(EncoderChannel valueChannel,
StringEncoder stringEncoder,
javax.xml.namespace.QName context)
throws java.io.IOException
- Throws:
java.io.IOException
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
- Overrides:
writeValueRCS
in class AbstractDatatype
- Throws:
java.io.IOException
readValue
public Value readValue(DecoderChannel valueChannel,
StringDecoder stringDecoder,
javax.xml.namespace.QName context)
throws java.io.IOException
- 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
- Overrides:
readValueRCS
in class AbstractDatatype
- Throws:
java.io.IOException