org.opcfoundation.ua.builtintypes
Class XmlElement

java.lang.Object
  extended by org.opcfoundation.ua.builtintypes.XmlElement

public final class XmlElement
extends Object

An XML element is a container for XML DOM documents.


Field Summary
static NodeId ID
          Constant ID
static String UTF8_BOM
          Constant UTF8_BOM=""
 
Constructor Summary
XmlElement(byte[] encodedDocument)
          Create XML Element with UTF8 encoded XML document.
XmlElement(Node node)
          Create new XML Element from XML Node
XmlElement(String document)
          Create new XML Element from XML document
 
Method Summary
 boolean equals(Object obj)
          
 byte[] getData()
          Get the XmlElement as UTF8 encoded document
 Node getNode()
          Getter for the field node.
 String getValue()
          getValue.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final NodeId ID
Constant ID


UTF8_BOM

public static final String UTF8_BOM
Constant UTF8_BOM=""

See Also:
Constant Field Values
Constructor Detail

XmlElement

public XmlElement(byte[] encodedDocument)
Create XML Element with UTF8 encoded XML document.

Parameters:
encodedDocument - an array of byte.

XmlElement

public XmlElement(Node node)
Create new XML Element from XML Node

Parameters:
node - xml node

XmlElement

public XmlElement(String document)
Create new XML Element from XML document

Parameters:
document - a String object.
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

getData

public byte[] getData()
Get the XmlElement as UTF8 encoded document

Returns:
UTF8 encoded document

getNode

public Node getNode()

Getter for the field node.

Returns:
a Node object.

getValue

public String getValue()

getValue.

Returns:
a String object.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2018. All rights reserved.