Class ObjectTypeTree
java.lang.Object
org.eclipse.milo.opcua.sdk.core.typetree.TypeTree<ObjectType>
org.eclipse.milo.opcua.sdk.core.typetree.ObjectTypeTree
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.milo.opcua.sdk.core.typetree.TypeTree
TypeTree.Type -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionObjectTypeTree(org.eclipse.milo.opcua.stack.core.util.Tree<ObjectType> tree) -
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectTypegetObjectType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId objectTypeId) Get theObjectTypeinfo for the ObjectType identified byobjectTypeId, if it exists.@Nullable org.eclipse.milo.opcua.stack.core.util.Tree<ObjectType>getTreeNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId objectTypeId) Get the underlyingTreenode for the ObjectType identified byobjectTypeId.Methods inherited from class org.eclipse.milo.opcua.sdk.core.typetree.TypeTree
containsType, getRoot, getType, isSubtypeOf, isSubtypeOf, isSubtypeOf, isSubtypeOf
-
Constructor Details
-
ObjectTypeTree
-
-
Method Details
-
getObjectType
public @Nullable ObjectType getObjectType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId objectTypeId) Get theObjectTypeinfo for the ObjectType identified byobjectTypeId, if it exists.- Parameters:
objectTypeId- theNodeIdof an ObjectType Node.- Returns:
- the
ObjectTypeinfo for the ObjectType identified byobjectTypeId, 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 underlyingTreenode for the ObjectType identified byobjectTypeId.- Overrides:
getTreeNodein classTypeTree<ObjectType>- Parameters:
objectTypeId- theNodeIdof an ObjectType Node.- Returns:
- the underlying
Treenode for the ObjectType identified byobjectTypeId.
-