public class TypedTypeEncoder extends AbstractTypeEncoder
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doNormalize |
protected BooleanValue |
lastBool |
protected boolean |
lastBoolean |
protected int |
lastBooleanID |
protected byte[] |
lastBytes |
Datatype |
lastDatatype |
protected DateTimeValue |
lastDatetime |
protected DecimalValue |
lastDecimal |
protected int |
lastEnumIndex |
protected FloatValue |
lastFloat |
protected IntegerValue |
lastInteger |
protected ListValue |
lastListValues |
protected IntegerValue |
lastNBitInteger |
protected String |
lastString |
protected IntegerValue |
lastUnsignedInteger |
dtrMap, dtrMapInUse, dtrMapRepresentations, dtrMapRepresentationsDatatype, dtrMapTypes| Constructor and Description |
|---|
TypedTypeEncoder() |
TypedTypeEncoder(boolean doNormalize) |
TypedTypeEncoder(QName[] dtrMapTypes,
QName[] dtrMapRepresentations,
Map<QName,Datatype> dtrMapRepresentationsDatatype) |
TypedTypeEncoder(QName[] dtrMapTypes,
QName[] dtrMapRepresentations,
Map<QName,Datatype> dtrMapRepresentationsDatatype,
boolean doNormalize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(Datatype datatype,
Value value)
Checks whether given value is valid according to the datatype.
|
protected boolean |
isValidString(String value) |
protected void |
normalize(Datatype datatype) |
protected void |
writeExtendedValue(ExtendedStringDatatype esDT,
QNameContext context,
EncoderChannel valueChannel,
StringEncoder stringEncoder,
String value) |
void |
writeValue(QNameContext qnContext,
EncoderChannel valueChannel,
StringEncoder stringEncoder)
Writes previously checked valid value to channel.
|
writeRCSValuegetDatatypeRepresentation, getDtrDatatype, updateDtrDatatypepublic Datatype lastDatatype
protected final boolean doNormalize
protected byte[] lastBytes
protected BooleanValue lastBool
protected int lastBooleanID
protected boolean lastBoolean
protected DecimalValue lastDecimal
protected FloatValue lastFloat
protected IntegerValue lastNBitInteger
protected IntegerValue lastUnsignedInteger
protected IntegerValue lastInteger
protected DateTimeValue lastDatetime
protected String lastString
protected int lastEnumIndex
protected ListValue lastListValues
public TypedTypeEncoder()
throws EXIException
EXIExceptionpublic TypedTypeEncoder(boolean doNormalize)
throws EXIException
EXIExceptionpublic TypedTypeEncoder(QName[] dtrMapTypes, QName[] dtrMapRepresentations, Map<QName,Datatype> dtrMapRepresentationsDatatype) throws EXIException
EXIExceptionpublic TypedTypeEncoder(QName[] dtrMapTypes, QName[] dtrMapRepresentations, Map<QName,Datatype> dtrMapRepresentationsDatatype, boolean doNormalize) throws EXIException
EXIExceptionpublic boolean isValid(Datatype datatype, Value value)
TypeEncoderdatatype - datatypevalue - valueprotected boolean isValidString(String value)
protected void normalize(Datatype datatype)
public void writeValue(QNameContext qnContext, EncoderChannel valueChannel, StringEncoder stringEncoder) throws IOException
TypeEncoderqnContext - contextvalueChannel - encoder value channelstringEncoder - string encoderIOException - IO exceptionprotected void writeExtendedValue(ExtendedStringDatatype esDT, QNameContext context, EncoderChannel valueChannel, StringEncoder stringEncoder, String value) throws IOException
IOExceptionCopyright © 2018 Siemens AG. All rights reserved.