|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.encoding.xml.XmlDecoder
public class XmlDecoder
XmlDecoder class.
| Constructor Summary | |
|---|---|
XmlDecoder(XmlElement element,
EncoderContext context)
Constructor for XmlDecoder. |
|
XmlDecoder(XMLStreamReader reader,
EncoderContext context)
Constructor for XmlDecoder. |
|
| Method Summary | ||
|---|---|---|
void |
close()
close. |
|
void |
close(boolean checkEof)
close. |
|
|
get(String fieldName,
Class<T> clazz)
get. |
|
Object |
getArrayObject(String fieldName,
int builtinTypeId)
getArrayObject. |
|
Boolean |
getBoolean(String fieldName)
getBoolean. |
|
Boolean[] |
getBooleanArray(String fieldName)
getBooleanArray. |
|
UnsignedByte |
getByte(String fieldName)
getByte. |
|
UnsignedByte[] |
getByteArray(String fieldName)
getByteArray. |
|
ByteString |
getByteString(String fieldName)
getByteString. |
|
ByteString[] |
getByteStringArray(String fieldName)
getByteStringArray. |
|
DataValue |
getDataValue(String fieldName)
getDataValue. |
|
DataValue[] |
getDataValueArray(String fieldName)
getDataValueArray. |
|
DateTime |
getDateTime(String fieldName)
getDateTime. |
|
DateTime[] |
getDateTimeArray(String fieldName)
getDateTimeArray. |
|
DiagnosticInfo |
getDiagnosticInfo()
getDiagnosticInfo. |
|
DiagnosticInfo |
getDiagnosticInfo(String fieldName)
getDiagnosticInfo. |
|
DiagnosticInfo[] |
getDiagnosticInfoArray(String fieldName)
getDiagnosticInfoArray. |
|
Double |
getDouble(String fieldName)
getDouble. |
|
Double[] |
getDoubleArray(String fieldName)
getDoubleArray. |
|
|
getEncodeable(String fieldName,
Class<? extends T> encodeableClass)
getEncodeable. |
|
|
getEncodeableArray(String fieldName,
Class<? extends T> encodeableClass)
getEncodeableArray. |
|
EncoderContext |
getEncoderContext()
Getter for the field encoderContext. |
|
void |
getEndElement()
getEndElement. |
|
|
getEnumeration(String fieldName,
Class<T> enumType)
getEnumeration. |
|
|
getEnumerationArray(String fieldName,
Class<T> enumerationClass)
getEnumerationArray. |
|
ExpandedNodeId |
getExpandedNodeId(String fieldName)
getExpandedNodeId. |
|
ExpandedNodeId[] |
getExpandedNodeIdArray(String fieldName)
getExpandedNodeIdArray. |
|
ExtensionObject |
getExtensionObject(String fieldName)
getExtensionObject. |
|
ExtensionObject[] |
getExtensionObjectArray(String fieldName)
getExtensionObjectArray. |
|
Object |
getExtensionObjectBody(ExpandedNodeId typeId)
getExtensionObjectBody. |
|
Float |
getFloat(String fieldName)
getFloat. |
|
Float[] |
getFloatArray(String fieldName)
getFloatArray. |
|
UUID |
getGuid(String fieldName)
getGuid. |
|
UUID[] |
getGuidArray(String fieldName)
getGuidArray. |
|
Short |
getInt16(String fieldName)
getInt16. |
|
Short[] |
getInt16Array(String fieldName)
getInt16Array. |
|
Integer |
getInt32(String fieldName)
getInt32. |
|
int[] |
getInt32Array_(String fieldName)
getInt32Array_. |
|
Integer[] |
getInt32Array(String fieldName)
getInt32Array. |
|
Long |
getInt64(String fieldName)
getInt64. |
|
Long[] |
getInt64Array(String fieldName)
getInt64Array. |
|
LocalizedText |
getLocalizedText(String fieldName)
getLocalizedText. |
|
LocalizedText[] |
getLocalizedTextArray(String fieldName)
getLocalizedTextArray. |
|
Object |
getMatrix(String fieldName)
|
|
|
getMessage()
getMessage. |
|
NamespaceTable |
getNamespaceTable()
Getter for the field namespaceTable. |
|
NodeId |
getNodeId(String fieldName)
getNodeId. |
|
NodeId[] |
getNodeIdArray(String fieldName)
getNodeIdArray. |
|
QualifiedName |
getQualifiedName(String fieldName)
getQualifiedName. |
|
QualifiedName[] |
getQualifiedNameArray(String fieldName)
getQualifiedNameArray. |
|
Byte |
getSByte(String fieldName)
getSByte. |
|
Byte[] |
getSByteArray(String fieldName)
getSByteArray. |
|
Object |
getScalarObject(String fieldName,
int builtinTypeId)
getScalarObject. |
|
ServerTable |
getServerTable()
Getter for the field serverTable. |
|
void |
getStartElement()
getStartElement. |
|
StatusCode |
getStatusCode(String fieldName)
getStatusCode. |
|
StatusCode[] |
getStatusCodeArray(String fieldName)
getStatusCodeArray. |
|
String |
getString(String fieldName)
getString. |
|
String[] |
getStringArray(String fieldName)
getStringArray. |
|
Structure |
getStructure(String fieldName)
getStructure. |
|
Structure[] |
getStructureArray(String fieldName)
getStructureArray. |
|
UnsignedShort |
getUInt16(String fieldName)
getUInt16. |
|
UnsignedShort[] |
getUInt16Array(String fieldName)
getUInt16Array. |
|
UnsignedInteger |
getUInt32(String fieldName)
getUInt32. |
|
UnsignedInteger[] |
getUInt32Array(String fieldName)
getUInt32Array. |
|
UnsignedLong |
getUInt64(String fieldName)
getUInt64. |
|
UnsignedLong[] |
getUInt64Array(String fieldName)
getUInt64Array. |
|
Variant |
getVariant(String fieldName)
getVariant. |
|
Variant[] |
getVariantArray(String fieldName)
getVariantArray. |
|
Object |
getVariantContents()
getVariantContents. |
|
XmlElement |
getXmlElement(String fieldName)
getXmlElement. |
|
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 |
setEncoderContext(EncoderContext ctx)
Setter for the field encoderContext. |
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlDecoder(XmlElement element,
EncoderContext context)
throws DecodingException
Constructor for XmlDecoder.
element - a XmlElement object.context - a EncoderContext object.
DecodingException - if any.
public XmlDecoder(XMLStreamReader reader,
EncoderContext context)
throws DecodingException
Constructor for XmlDecoder.
reader - a XMLStreamReader object.context - a EncoderContext object.
DecodingException - if any.| Method Detail |
|---|
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,
Class<T> clazz)
throws DecodingException
get.
get in interface IDecoderT - a T object.fieldName - a String object.clazz - a Class object.
DecodingException - if any.
public Object getArrayObject(String fieldName,
int builtinTypeId)
throws DecodingException
getArrayObject.
getArrayObject in interface IDecoderfieldName - a String object.builtinTypeId - a int.
Object object.
DecodingException - if any.
public Boolean getBoolean(String fieldName)
throws DecodingException
getBoolean.
getBoolean in interface IDecoderfieldName - a String object.
Boolean object.
DecodingException - if any.
public Boolean[] getBooleanArray(String fieldName)
throws DecodingException
getBooleanArray.
getBooleanArray in interface IDecoderfieldName - a String object.
Boolean objects.
DecodingException - if any.
public UnsignedByte getByte(String fieldName)
throws DecodingException
getByte.
getByte in interface IDecoderfieldName - a String object.
UnsignedByte object.
DecodingException - if any.
public UnsignedByte[] getByteArray(String fieldName)
throws DecodingException
getByteArray.
getByteArray in interface IDecoderfieldName - a String object.
UnsignedByte objects.
DecodingException - if any.
public ByteString getByteString(String fieldName)
throws DecodingException
getByteString.
getByteString in interface IDecoderfieldName - a String object.
DecodingException - if any.
public ByteString[] getByteStringArray(String fieldName)
throws DecodingException
getByteStringArray.
getByteStringArray in interface IDecoderfieldName - a String object.
DecodingException - if any.
public DataValue getDataValue(String fieldName)
throws DecodingException
getDataValue.
getDataValue in interface IDecoderfieldName - a String object.
DataValue object.
DecodingException - if any.
public DataValue[] getDataValueArray(String fieldName)
throws DecodingException
getDataValueArray.
getDataValueArray in interface IDecoderfieldName - a String object.
DataValue objects.
DecodingException - if any.
public DateTime getDateTime(String fieldName)
throws DecodingException
getDateTime.
getDateTime in interface IDecoderfieldName - a String object.
DateTime object.
DecodingException - if any.
public DateTime[] getDateTimeArray(String fieldName)
throws DecodingException
getDateTimeArray.
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 getDiagnosticInfo(String fieldName)
throws DecodingException
getDiagnosticInfo.
getDiagnosticInfo in interface IDecoderfieldName - a String object.
DiagnosticInfo object.
DecodingException - if any.
public DiagnosticInfo[] getDiagnosticInfoArray(String fieldName)
throws DecodingException
getDiagnosticInfoArray.
getDiagnosticInfoArray in interface IDecoderfieldName - a String object.
DiagnosticInfo objects.
DecodingException - if any.
public Double getDouble(String fieldName)
throws DecodingException
getDouble.
getDouble in interface IDecoderfieldName - a String object.
Double object.
DecodingException - if any.
public Double[] getDoubleArray(String fieldName)
throws DecodingException
getDoubleArray.
getDoubleArray in interface IDecoderfieldName - a String object.
Double objects.
DecodingException - if any.
public <T extends IEncodeable> T getEncodeable(String fieldName,
Class<? extends T> encodeableClass)
throws DecodingException
getEncodeable.
getEncodeable in interface IDecoderT - a T object.fieldName - a String object.encodeableClass - a Class object.
DecodingException - if any.
public <T extends IEncodeable> T[] getEncodeableArray(String fieldName,
Class<? extends T> encodeableClass)
throws DecodingException
getEncodeableArray.
getEncodeableArray in interface IDecoderT - a T object.fieldName - a String object.encodeableClass - a Class object.
DecodingException - if any.public EncoderContext getEncoderContext()
Getter for the field encoderContext.
EncoderContext object.
public void getEndElement()
throws DecodingException
getEndElement.
DecodingException - if any.
public <T extends Enumeration> T getEnumeration(String fieldName,
Class<T> enumType)
throws DecodingException
getEnumeration.
getEnumeration in interface IDecoderT - a T object.fieldName - a String object.enumType - a Class object.
DecodingException - if any.
public <T extends Enumeration> T[] getEnumerationArray(String fieldName,
Class<T> enumerationClass)
throws DecodingException
getEnumerationArray.
getEnumerationArray in interface IDecoderT - a T object.fieldName - a String object.enumerationClass - a Class object.
DecodingException - if any.
public ExpandedNodeId getExpandedNodeId(String fieldName)
throws DecodingException
getExpandedNodeId.
getExpandedNodeId in interface IDecoderfieldName - a String object.
ExpandedNodeId object.
DecodingException - if any.
public ExpandedNodeId[] getExpandedNodeIdArray(String fieldName)
throws DecodingException
getExpandedNodeIdArray.
getExpandedNodeIdArray in interface IDecoderfieldName - a String object.
ExpandedNodeId objects.
DecodingException - if any.
public ExtensionObject getExtensionObject(String fieldName)
throws IllegalArgumentException,
DecodingException
getExtensionObject.
getExtensionObject in interface IDecoderfieldName - a String object.
ExtensionObject object.
DecodingException - if any.
IllegalArgumentException
public ExtensionObject[] getExtensionObjectArray(String fieldName)
throws DecodingException
getExtensionObjectArray.
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 getFloat(String fieldName)
throws DecodingException
getFloat.
getFloat in interface IDecoderfieldName - a String object.
Float 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 getGuid(String fieldName)
throws DecodingException
getGuid.
getGuid in interface IDecoderfieldName - a String object.
UUID object.
DecodingException - if any.
public UUID[] getGuidArray(String fieldName)
throws DecodingException
getGuidArray.
getGuidArray in interface IDecoderfieldName - a String object.
UUID objects.
DecodingException - if any.
public Short getInt16(String fieldName)
throws DecodingException
getInt16.
getInt16 in interface IDecoderfieldName - a String object.
Short object.
DecodingException - if any.
public Short[] getInt16Array(String fieldName)
throws DecodingException
getInt16Array.
getInt16Array in interface IDecoderfieldName - a String object.
Short objects.
DecodingException - if any.
public Integer getInt32(String fieldName)
throws DecodingException
getInt32.
getInt32 in interface IDecoderfieldName - a String object.
Integer object.
DecodingException - if any.
public Integer[] getInt32Array(String fieldName)
throws DecodingException
getInt32Array.
getInt32Array in interface IDecoderfieldName - a String object.
Integer objects.
DecodingException - if any.
public int[] getInt32Array_(String fieldName)
throws DecodingException
getInt32Array_.
getInt32Array_ in interface IDecoderfieldName - a String object.
DecodingException - if any.
public Long getInt64(String fieldName)
throws DecodingException
getInt64.
getInt64 in interface IDecoderfieldName - a String object.
Long object.
DecodingException - if any.
public Long[] getInt64Array(String fieldName)
throws DecodingException
getInt64Array.
getInt64Array in interface IDecoderfieldName - a String object.
Long objects.
DecodingException - if any.
public LocalizedText getLocalizedText(String fieldName)
throws DecodingException
getLocalizedText.
getLocalizedText in interface IDecoderfieldName - a String object.
LocalizedText object.
DecodingException - if any.
public LocalizedText[] getLocalizedTextArray(String fieldName)
throws DecodingException
getLocalizedTextArray.
getLocalizedTextArray in interface IDecoderfieldName - a String object.
LocalizedText objects.
DecodingException - if any.
public Object getMatrix(String fieldName)
throws DecodingException
DecodingException
public <T extends IEncodeable> T getMessage()
throws DecodingException
getMessage.
getMessage in interface IDecoderT - a T object.
DecodingException - if any.public NamespaceTable getNamespaceTable()
Getter for the field namespaceTable.
public NodeId getNodeId(String fieldName)
throws IllegalArgumentException,
DecodingException
getNodeId.
getNodeId in interface IDecoderfieldName - a String object.
NodeId object.
DecodingException - if any.
IllegalArgumentException
public NodeId[] getNodeIdArray(String fieldName)
throws DecodingException
getNodeIdArray.
getNodeIdArray in interface IDecoderfieldName - a String object.
NodeId objects.
DecodingException - if any.
public QualifiedName getQualifiedName(String fieldName)
throws DecodingException
getQualifiedName.
getQualifiedName in interface IDecoderfieldName - a String object.
QualifiedName object.
DecodingException - if any.
public QualifiedName[] getQualifiedNameArray(String fieldName)
throws DecodingException
getQualifiedNameArray.
getQualifiedNameArray in interface IDecoderfieldName - a String object.
QualifiedName objects.
DecodingException - if any.
public Byte getSByte(String fieldName)
throws DecodingException
getSByte.
getSByte in interface IDecoderfieldName - a String object.
Byte object.
DecodingException - if any.
public Byte[] getSByteArray(String fieldName)
throws DecodingException
getSByteArray.
getSByteArray in interface IDecoderfieldName - a String object.
Byte objects.
DecodingException - if any.
public Object getScalarObject(String fieldName,
int builtinTypeId)
throws DecodingException
getScalarObject.
getScalarObject in interface IDecoderfieldName - a String object.builtinTypeId - a int.
Object object.
DecodingException - if any.public ServerTable getServerTable()
Getter for the field serverTable.
public void getStartElement()
throws DecodingException
getStartElement.
DecodingException - if any.
public StatusCode getStatusCode(String fieldName)
throws DecodingException
getStatusCode.
getStatusCode in interface IDecoderfieldName - a String object.
StatusCode object.
DecodingException - if any.
public StatusCode[] getStatusCodeArray(String fieldName)
throws DecodingException
getStatusCodeArray.
getStatusCodeArray in interface IDecoderfieldName - a String object.
StatusCode objects.
DecodingException - if any.
public String getString(String fieldName)
throws DecodingException
getString.
getString in interface IDecoderfieldName - a String object.
String object.
DecodingException - if any.
public String[] getStringArray(String fieldName)
throws DecodingException
getStringArray.
getStringArray in interface IDecoderfieldName - a String object.
String objects.
DecodingException - if any.
public Structure getStructure(String fieldName)
throws DecodingException
getStructure.
getStructure in interface IDecoderfieldName - a String object.
Structure object.
DecodingException - if any.
public Structure[] getStructureArray(String fieldName)
throws DecodingException
getStructureArray.
getStructureArray in interface IDecoderfieldName - a String object.
Structure objects.
DecodingException - if any.
public UnsignedShort getUInt16(String fieldName)
throws DecodingException
getUInt16.
getUInt16 in interface IDecoderfieldName - a String object.
UnsignedShort object.
DecodingException - if any.
public UnsignedShort[] getUInt16Array(String fieldName)
throws DecodingException
getUInt16Array.
getUInt16Array in interface IDecoderfieldName - a String object.
UnsignedShort objects.
DecodingException - if any.
public UnsignedInteger getUInt32(String fieldName)
throws DecodingException
getUInt32.
getUInt32 in interface IDecoderfieldName - a String object.
UnsignedInteger object.
DecodingException - if any.
public UnsignedInteger[] getUInt32Array(String fieldName)
throws DecodingException
getUInt32Array.
getUInt32Array in interface IDecoderfieldName - a String object.
UnsignedInteger objects.
DecodingException - if any.
public UnsignedLong getUInt64(String fieldName)
throws DecodingException
getUInt64.
getUInt64 in interface IDecoderfieldName - a String object.
UnsignedLong object.
DecodingException - if any.
public UnsignedLong[] getUInt64Array(String fieldName)
throws DecodingException
getUInt64Array.
getUInt64Array in interface IDecoderfieldName - a String object.
UnsignedLong objects.
DecodingException - if any.
public Variant getVariant(String fieldName)
throws DecodingException
getVariant.
getVariant in interface IDecoderfieldName - a String object.
Variant object.
DecodingException - if any.
public Variant[] getVariantArray(String fieldName)
throws DecodingException
getVariantArray.
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 getXmlElement(String fieldName)
throws DecodingException
getXmlElement.
getXmlElement in interface IDecoderfieldName - a String object.
XmlElement object.
DecodingException - if any.
public XmlElement[] getXmlElementArray(String fieldName)
throws DecodingException
getXmlElementArray.
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 QName peek(int nodeType)
peek.
nodeType - a int.
QName object.public boolean peek(String fieldName)
peek.
fieldName - a String object.
public void setEncoderContext(EncoderContext ctx)
Setter for the field encoderContext.
ctx - a EncoderContext object.public void setNamespaceTable(NamespaceTable namespaceTable)
namespaceTable - a NamespaceTable object.public void setServerTable(ServerTable serverTable)
serverTable - a ServerTable object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||