java.lang.Object
org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject
org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.Xml
Enclosing class:
ExtensionObject

public static final class ExtensionObject.Xml extends ExtensionObject
An ExtensionObject that contains an XmlElement body, used with XML encoding.
  • Method Details

    • getBody

      public XmlElement getBody()
      Description copied from class: ExtensionObject
      Get the body of this ExtensionObject.

      The body is the encoded value of the ExtensionObject. The type of the body depends on the encoding that was used to encode the ExtensionObject. The body is one of:

      Specified by:
      getBody in class ExtensionObject
      Returns:
      the body of this ExtensionObject.
    • getEncodingOrTypeId

      public NodeId getEncodingOrTypeId()
      Description copied from class: ExtensionObject
      Get the NodeId of the datatype encoding or datatype of the encoded value contained by this ExtensionObject.

      The NodeId returned is the encoding id if the encoding is Binary or XML, or the datatype id if the encoding is JSON.

      Specified by:
      getEncodingOrTypeId in class ExtensionObject
      Returns:
      the NodeId of the datatype encoding or datatype.
    • isNull

      public boolean isNull()
      Description copied from class: ExtensionObject
      Check if this ExtensionObject is null.
      Specified by:
      isNull in class ExtensionObject
      Returns:
      true if this ExtensionObject is null, false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object