Class TypeTree<T extends TypeTree.Type>
java.lang.Object
org.eclipse.milo.opcua.sdk.core.typetree.TypeTree<T>
- Direct Known Subclasses:
DataTypeTree,ObjectTypeTree,ReferenceTypeTree,VariableTypeTree
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeId) Returntrueif this TypeTree contains a type identified bynodeId.org.eclipse.milo.opcua.stack.core.util.Tree<T>getRoot()Get the root node of the underlyingTreestructure.@Nullable org.eclipse.milo.opcua.stack.core.util.Tree<T>getTreeNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) Get the underlyingTreenode for the type identified bynodeId.@Nullable TgetType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) Get theTypeTreefor the type identified bynodeId, if it exists.booleanisSubtypeOf(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeId, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId superTypeId) Check if a type is a subtype of some other type.booleanisSubtypeOf(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeId, T supertype) Check if a type is a subtype of some other type.booleanisSubtypeOf(T type, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId superTypeId) Check if a type is a subtype of some other type.booleanisSubtypeOf(T type, T supertype) Check if a type is a subtype of some other type.
-
Field Details
-
types
protected final Map<org.eclipse.milo.opcua.stack.core.types.builtin.NodeId,org.eclipse.milo.opcua.stack.core.util.Tree<T extends TypeTree.Type>> types -
tree
-
-
Constructor Details
-
TypeTree
-
-
Method Details
-
getRoot
Get the root node of the underlyingTreestructure.- Returns:
- the root node of the underlying
Treestructure.
-
getTreeNode
public @Nullable org.eclipse.milo.opcua.stack.core.util.Tree<T> getTreeNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) Get the underlyingTreenode for the type identified bynodeId.- Parameters:
nodeId- theNodeIdof a type.- Returns:
- the underlying
Treenode for the type identified bynodeId.
-
getType
Get theTypeTreefor the type identified bynodeId, if it exists.- Parameters:
nodeId- theNodeIdof the type.- Returns:
TypeTreefor the type identified bynodeId, if it exists.
-
containsType
public boolean containsType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeId) Returntrueif this TypeTree contains a type identified bynodeId.- Parameters:
typeId- theNodeIdidentifying the type.- Returns:
trueif this TypeTree contains a type identified bynodeId.
-
isSubtypeOf
Check if a type is a subtype of some other type.- Parameters:
type- the type to check.supertype- the potential supertype.- Returns:
trueiftypeis a subtype ofsupertype.
-
isSubtypeOf
public boolean isSubtypeOf(T type, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId superTypeId) Check if a type is a subtype of some other type.- Parameters:
type- the type to check.superTypeId- the NodeId of the potential supertype.- Returns:
trueiftypeis a subtype of the type identified bysuperTypeId.
-
isSubtypeOf
public boolean isSubtypeOf(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeId, T supertype) Check if a type is a subtype of some other type.- Parameters:
typeId- the NodeId of the type to check.supertype- the potential supertype.- Returns:
trueiftypeIdidentifies a type that is a subtype ofsupertype.
-
isSubtypeOf
public boolean isSubtypeOf(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeId, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId superTypeId) Check if a type is a subtype of some other type.- Parameters:
typeId- the NodeId of the type to check.superTypeId- the NodeId of the potential supertype.- Returns:
trueiftypeIdidentifies a type that is a subtype of the type identified bysuperTypeId.
-