public class ExtensionObject
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static byte |
ENCODING_BYTESTRING
The body is a byte[]
|
static byte |
ENCODING_NONE
No body is encoded (null body)
|
static byte |
ENCODING_SERIALIZABLE
Special code that mean that the body has not yet been encoded, and is an instance of
UASerializable
|
static byte |
ENCODING_XMLELEMENT
The body is an XmlElement
|
Constructor and Description |
---|
ExtensionObject(NodeId typeId)
Creates an ExtensionObject with a null body
|
ExtensionObject(NodeId typeId,
byte[] body)
Creates an ExtensionObject whose body is already serialized in the form of a ByteString
|
ExtensionObject(NodeId typeId,
XmlElement body)
Creates an ExtensionObject whose body is already serialized in the form of an XmlElement
|
ExtensionObject(UASerializable serializable)
This constructor creates an ExtensionObject that supports deferred or inline serialization.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getBody() |
byte |
getEncoding() |
NodeId |
getTypeId() |
public static byte ENCODING_NONE
public static byte ENCODING_BYTESTRING
public static byte ENCODING_XMLELEMENT
public static byte ENCODING_SERIALIZABLE
public ExtensionObject(NodeId typeId)
public ExtensionObject(NodeId typeId, byte[] body)
public ExtensionObject(NodeId typeId, XmlElement body)
public ExtensionObject(UASerializable serializable)
public NodeId getTypeId()
public java.lang.Object getBody()
public byte getEncoding()