public class XmlDecoder extends AbstractDecoder implements IDecoder
XmlDecoder class.
ctx| Constructor and Description |
|---|
XmlDecoder(XmlElement element,
EncoderContext encoderContext)
Constructor for XmlDecoder.
|
XmlDecoder(XMLStreamReader reader,
EncoderContext encoderContext)
Constructor for XmlDecoder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close.
|
void |
close(boolean checkEof)
close.
|
<T> T |
get(String fieldName,
UaNodeId dataTypeId,
int dimensions) |
Boolean[] |
getBooleanArray(String fieldName)
getBooleanArray.
|
UnsignedByte[] |
getByteArray(String fieldName)
getByteArray.
|
ByteString[] |
getByteStringArray(String fieldName)
getByteStringArray.
|
DataValue[] |
getDataValueArray(String fieldName)
getDataValueArray.
|
DateTime[] |
getDateTimeArray(String fieldName)
getDateTimeArray.
|
DiagnosticInfo |
getDiagnosticInfo()
getDiagnosticInfo.
|
DiagnosticInfo[] |
getDiagnosticInfoArray(String fieldName)
getDiagnosticInfoArray.
|
Double[] |
getDoubleArray(String fieldName)
getDoubleArray.
|
void |
getEndElement()
getEndElement.
|
ExpandedNodeId[] |
getExpandedNodeIdArray(String fieldName)
getExpandedNodeIdArray.
|
ExtensionObject[] |
getExtensionObjectArray(String fieldName)
getExtensionObjectArray.
|
Object |
getExtensionObjectBody(ExpandedNodeId typeId)
getExtensionObjectBody.
|
Float[] |
getFloatArray(String fieldName)
getFloatArray.
|
UUID[] |
getGuidArray(String fieldName)
getGuidArray.
|
Short[] |
getInt16Array(String fieldName)
getInt16Array.
|
int[] |
getInt32Array_(String fieldName)
getInt32Array_.
|
Integer[] |
getInt32Array(String fieldName)
getInt32Array.
|
Long[] |
getInt64Array(String fieldName)
getInt64Array.
|
LocalizedText[] |
getLocalizedTextArray(String fieldName)
getLocalizedTextArray.
|
Object |
getMatrix(String fieldName) |
NamespaceTable |
getNamespaceTable()
Getter for the field
namespaceTable. |
NodeId[] |
getNodeIdArray(String fieldName)
getNodeIdArray.
|
QualifiedName[] |
getQualifiedNameArray(String fieldName)
getQualifiedNameArray.
|
Byte[] |
getSByteArray(String fieldName)
getSByteArray.
|
ServerTable |
getServerTable()
Getter for the field
serverTable. |
void |
getStartElement()
getStartElement.
|
StatusCode[] |
getStatusCodeArray(String fieldName)
getStatusCodeArray.
|
String[] |
getStringArray(String fieldName)
getStringArray.
|
UnsignedShort[] |
getUInt16Array(String fieldName)
getUInt16Array.
|
UnsignedInteger[] |
getUInt32Array(String fieldName)
getUInt32Array.
|
UnsignedLong[] |
getUInt64Array(String fieldName)
getUInt64Array.
|
Variant[] |
getVariantArray(String fieldName)
getVariantArray.
|
Object |
getVariantContents()
getVariantContents.
|
XmlElement[] |
getXmlElementArray(String fieldName)
getXmlElementArray.
|
boolean |
loadStringTable(String tableName,
String elementName,
List<String> stringTable)
loadStringTable.
|
QName |
peek(int nodeType)
peek.
|
boolean |
peek(String fieldName)
peek.
|
void |
setNamespaceTable(NamespaceTable namespaceTable)
Define the namespace table to use for mapping the namespace indexes of the XML data to the
application data.
|
void |
setServerTable(ServerTable serverTable)
Define the server table to use for mapping the server indexes of the XML data to the
application data.
|
assertArrayLength, assertByteStringLength, assertStringLength, emptyArrayForClass, getEncoderContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoolean, getByte, getByteString, getDataValue, getDateTime, getDiagnosticInfo, getDouble, getEncoderContext, getExpandedNodeId, getExtensionObject, getFloat, getGuid, getInt16, getInt32, getInt64, getLocalizedText, getNodeId, getQualifiedName, getSByte, getStatusCode, getString, getUInt16, getUInt32, getUInt64, getVariant, getXmlElementpublic XmlDecoder(XmlElement element, EncoderContext encoderContext) throws DecodingException
Constructor for XmlDecoder.
element - a XmlElement object.context - a EncoderContext object.DecodingException - if any.public XmlDecoder(XMLStreamReader reader, EncoderContext encoderContext) throws DecodingException
Constructor for XmlDecoder.
reader - a XMLStreamReader object.context - a EncoderContext object.DecodingException - if any.public void close()
throws DecodingException
close.
DecodingException - if any.public void close(boolean checkEof)
throws DecodingException
close.
checkEof - a boolean.DecodingException - if any.public <T> T get(String fieldName, UaNodeId dataTypeId, int dimensions) throws DecodingException
get in interface IDecoderDecodingExceptionpublic Boolean[] getBooleanArray(String fieldName) throws DecodingException
IDecodergetBooleanArray.
getBooleanArray in interface IDecoderfieldName - a String object.Boolean objects.DecodingException - if any.public UnsignedByte[] getByteArray(String fieldName) throws DecodingException
IDecodergetByteArray.
getByteArray in interface IDecoderfieldName - a String object.UnsignedByte objects.DecodingException - if any.public ByteString[] getByteStringArray(String fieldName) throws DecodingException
IDecodergetByteStringArray.
getByteStringArray in interface IDecoderfieldName - a String object.DecodingException - if any.public DataValue[] getDataValueArray(String fieldName) throws DecodingException
IDecodergetDataValueArray.
getDataValueArray in interface IDecoderfieldName - a String object.DataValue objects.DecodingException - if any.public DateTime[] getDateTimeArray(String fieldName) throws DecodingException
IDecodergetDateTimeArray.
getDateTimeArray in interface IDecoderfieldName - a String object.DateTime objects.DecodingException - if any.public DiagnosticInfo getDiagnosticInfo() throws DecodingException
getDiagnosticInfo.
DiagnosticInfo object.DecodingException - if any.public DiagnosticInfo[] getDiagnosticInfoArray(String fieldName) throws DecodingException
IDecodergetDiagnosticInfoArray.
getDiagnosticInfoArray in interface IDecoderfieldName - a String object.DiagnosticInfo objects.DecodingException - if any.public Double[] getDoubleArray(String fieldName) throws DecodingException
IDecodergetDoubleArray.
getDoubleArray in interface IDecoderfieldName - a String object.Double objects.DecodingException - if any.public void getEndElement()
throws DecodingException
getEndElement.
DecodingException - if any.public ExpandedNodeId[] getExpandedNodeIdArray(String fieldName) throws DecodingException
IDecodergetExpandedNodeIdArray.
getExpandedNodeIdArray in interface IDecoderfieldName - a String object.ExpandedNodeId objects.DecodingException - if any.public ExtensionObject[] getExtensionObjectArray(String fieldName) throws DecodingException
IDecodergetExtensionObjectArray.
getExtensionObjectArray in interface IDecoderfieldName - a String object.ExtensionObject objects.DecodingException - if any.public Object getExtensionObjectBody(ExpandedNodeId typeId) throws DecodingException
getExtensionObjectBody.
typeId - a ExpandedNodeId object.Object object.DecodingException - if any.public Float[] getFloatArray(String fieldName) throws DecodingException
getFloatArray.
getFloatArray in interface IDecoderfieldName - a String object.Float objects.DecodingException - if any.public UUID[] getGuidArray(String fieldName) throws DecodingException
IDecodergetGuidArray.
getGuidArray in interface IDecoderfieldName - a String object.UUID objects.DecodingException - if any.public Short[] getInt16Array(String fieldName) throws DecodingException
IDecodergetInt16Array.
getInt16Array in interface IDecoderfieldName - a String object.Short objects.DecodingException - if any.public Integer[] getInt32Array(String fieldName) throws DecodingException
IDecodergetInt32Array.
getInt32Array in interface IDecoderfieldName - a String object.Integer objects.DecodingException - if any.public int[] getInt32Array_(String fieldName) throws DecodingException
IDecodergetInt32Array_.
getInt32Array_ in interface IDecoderfieldName - a String object.DecodingException - if any.public Long[] getInt64Array(String fieldName) throws DecodingException
IDecodergetInt64Array.
getInt64Array in interface IDecoderfieldName - a String object.Long objects.DecodingException - if any.public LocalizedText[] getLocalizedTextArray(String fieldName) throws DecodingException
IDecodergetLocalizedTextArray.
getLocalizedTextArray in interface IDecoderfieldName - a String object.LocalizedText objects.DecodingException - if any.public Object getMatrix(String fieldName) throws DecodingException
DecodingExceptionpublic NamespaceTable getNamespaceTable()
Getter for the field namespaceTable.
public NodeId[] getNodeIdArray(String fieldName) throws DecodingException
IDecodergetNodeIdArray.
getNodeIdArray in interface IDecoderfieldName - a String object.NodeId objects.DecodingException - if any.public QualifiedName[] getQualifiedNameArray(String fieldName) throws DecodingException
IDecodergetQualifiedNameArray.
getQualifiedNameArray in interface IDecoderfieldName - a String object.QualifiedName objects.DecodingException - if any.public Byte[] getSByteArray(String fieldName) throws DecodingException
IDecodergetSByteArray.
getSByteArray in interface IDecoderfieldName - a String object.Byte objects.DecodingException - if any.public ServerTable getServerTable()
Getter for the field serverTable.
public void getStartElement()
throws DecodingException
getStartElement.
DecodingException - if any.public StatusCode[] getStatusCodeArray(String fieldName) throws DecodingException
IDecodergetStatusCodeArray.
getStatusCodeArray in interface IDecoderfieldName - a String object.StatusCode objects.DecodingException - if any.public String[] getStringArray(String fieldName) throws DecodingException
getStringArray.
getStringArray in interface IDecoderfieldName - a String object.String objects.DecodingException - if any.public UnsignedShort[] getUInt16Array(String fieldName) throws DecodingException
IDecodergetUInt16Array.
getUInt16Array in interface IDecoderfieldName - a String object.UnsignedShort objects.DecodingException - if any.public UnsignedInteger[] getUInt32Array(String fieldName) throws DecodingException
IDecodergetUInt32Array.
getUInt32Array in interface IDecoderfieldName - a String object.UnsignedInteger objects.DecodingException - if any.public UnsignedLong[] getUInt64Array(String fieldName) throws DecodingException
IDecodergetUInt64Array.
getUInt64Array in interface IDecoderfieldName - a String object.UnsignedLong objects.DecodingException - if any.public Variant[] getVariantArray(String fieldName) throws DecodingException
IDecodergetVariantArray.
getVariantArray in interface IDecoderfieldName - a String object.Variant objects.DecodingException - if any.public Object getVariantContents() throws DecodingException
getVariantContents.
Object object.DecodingException - if any.public XmlElement[] getXmlElementArray(String fieldName) throws DecodingException
IDecodergetXmlElementArray.
getXmlElementArray in interface IDecoderfieldName - a String object.XmlElement objects.DecodingException - if any.public boolean loadStringTable(String tableName, String elementName, List<String> stringTable) throws DecodingException
loadStringTable.
tableName - a String object.elementName - a String object.stringTable - a List object.DecodingException - if any.public boolean peek(String fieldName)
peek.
fieldName - a String object.public void setNamespaceTable(NamespaceTable namespaceTable)
namespaceTable - a NamespaceTable object.public void setServerTable(ServerTable serverTable)
serverTable - a ServerTable object.Copyright © 2026. All rights reserved.