java.lang.Object
org.eclipse.milo.opcua.sdk.core.typetree.TypeTree<ObjectType>
org.eclipse.milo.opcua.sdk.core.typetree.ObjectTypeTree

public class ObjectTypeTree extends TypeTree<ObjectType>
A tree-based representation of an ObjectType hierarchy.

Allows for convenient operations such as:

  • checking if an ObjectType is a subtype of another ObjectType
  • retrieving ObjectType information by NodeId
  • Constructor Details

    • ObjectTypeTree

      public ObjectTypeTree(org.eclipse.milo.opcua.stack.core.util.Tree<ObjectType> tree)
  • Method Details

    • getObjectType

      public @Nullable ObjectType getObjectType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId objectTypeId)
      Get the ObjectType info for the ObjectType identified by objectTypeId, if it exists.
      Parameters:
      objectTypeId - the NodeId of an ObjectType Node.
      Returns:
      the ObjectType info for the ObjectType identified by objectTypeId, if it exists.
    • getTreeNode

      public @Nullable org.eclipse.milo.opcua.stack.core.util.Tree<ObjectType> getTreeNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId objectTypeId)
      Get the underlying Tree node for the ObjectType identified by objectTypeId.
      Overrides:
      getTreeNode in class TypeTree<ObjectType>
      Parameters:
      objectTypeId - the NodeId of an ObjectType Node.
      Returns:
      the underlying Tree node for the ObjectType identified by objectTypeId.