java.lang.Object
org.eclipse.milo.opcua.sdk.core.types.DynamicType
org.eclipse.milo.opcua.sdk.core.types.DynamicStructType
All Implemented Interfaces:
org.eclipse.milo.opcua.stack.core.types.UaDataType, org.eclipse.milo.opcua.stack.core.types.UaStructuredType

public final class DynamicStructType extends DynamicType implements org.eclipse.milo.opcua.stack.core.types.UaStructuredType
  • Constructor Details

  • Method Details

    • getDataType

      public DataType getDataType()
      Description copied from class: DynamicType
      Get the DataType that defines this type.
      Specified by:
      getDataType in class DynamicType
      Returns:
      the DataType that defines this type.
    • getDataTypeDefinition

      public org.eclipse.milo.opcua.stack.core.types.structured.StructureDefinition getDataTypeDefinition()
      Description copied from class: DynamicType
      Get the DataTypeDefinition that defines this type.

      Subclasses may refine the return type to either EnumDefinition or StructureDefinition.

      Specified by:
      getDataTypeDefinition in class DynamicType
      Returns:
      the DataTypeDefinition that defines this type.
    • getMembers

      public LinkedHashMap<String,Object> getMembers()
      Get the members of this struct.

      The members are a map of member names to their values.

      Returns:
      the members of this struct.
    • getTypeId

      public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getTypeId()
      Specified by:
      getTypeId in interface org.eclipse.milo.opcua.stack.core.types.UaDataType
    • getBinaryEncodingId

      public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getBinaryEncodingId()
      Specified by:
      getBinaryEncodingId in interface org.eclipse.milo.opcua.stack.core.types.UaStructuredType
    • getXmlEncodingId

      public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getXmlEncodingId()
      Specified by:
      getXmlEncodingId in interface org.eclipse.milo.opcua.stack.core.types.UaStructuredType
    • getJsonEncodingId

      public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getJsonEncodingId()
      Specified by:
      getJsonEncodingId in interface org.eclipse.milo.opcua.stack.core.types.UaStructuredType
    • 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
    • toStringPretty

      public String toStringPretty()
      Returns a pretty-printed string representation of this struct. Nested structures are indented for better readability.
      Returns:
      a pretty-printed string representation of this struct.
    • newInstance

      public static DynamicStructType newInstance(DataType dataType)
      Create a new DynamicStructType using the given DataType.

      The members of the struct are empty.

      Parameters:
      dataType - the DataType of the struct.
      Returns:
      a new DynamicStructType with the given DataType.
    • newInstanceFactory

      public static Supplier<DynamicStructType> newInstanceFactory(DataType dataType)
      Create a new instance "factory" that produces new DynamicStructType instances of the given DataType.
      Parameters:
      dataType - the DataType of the struct.
      Returns:
      a new instance "factory".