com.siemens.ct.exi.datatype.encoder
Class BooleanPatternDatatypeEncoder
java.lang.Object
com.siemens.ct.exi.datatype.encoder.AbstractDatatypeEncoder
com.siemens.ct.exi.datatype.encoder.BooleanPatternDatatypeEncoder
- All Implemented Interfaces:
- DatatypeEncoder
public class BooleanPatternDatatypeEncoder
- extends AbstractDatatypeEncoder
- implements DatatypeEncoder
When pattern facets are available in the schema datatype, Boolean datatype
representation is able to distinguish values not only arithmetically (0 or 1)
but also between lexical variances ("0", "1", "false" and "true"), and values
typed as Boolean are represented as n-bit unsigned integer (7.1.9 n-bit
Unsigned Integer), where n is two (2) and the value zero (0), one (1), two
(2) and three (3) each represents value "false", "0", "true" and "1".
- Version:
- 0.3.20081110
- Author:
- Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanPatternDatatypeEncoder
public BooleanPatternDatatypeEncoder(TypeEncoder typeEncoder)
isValid
public boolean isValid(Datatype datatype,
java.lang.String value)
- Specified by:
isValid
in interface DatatypeEncoder
writeValue
public void writeValue(EncoderChannel valueChannel,
java.lang.String uri,
java.lang.String localName)
throws java.io.IOException
- Specified by:
writeValue
in interface DatatypeEncoder
- Throws:
java.io.IOException