java.lang.Object
org.eclipse.milo.opcua.sdk.core.typetree.TypeTree<T>
Direct Known Subclasses:
DataTypeTree, ObjectTypeTree, ReferenceTypeTree, VariableTypeTree

public abstract class TypeTree<T extends TypeTree.Type> extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.eclipse.milo.opcua.stack.core.util.Tree<T>
     
    protected final Map<org.eclipse.milo.opcua.stack.core.types.builtin.NodeId,org.eclipse.milo.opcua.stack.core.util.Tree<T>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TypeTree(org.eclipse.milo.opcua.stack.core.util.Tree<T> tree)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeId)
    Return true if this TypeTree contains a type identified by nodeId.
    org.eclipse.milo.opcua.stack.core.util.Tree<T>
    Get the root node of the underlying Tree structure.
    @Nullable org.eclipse.milo.opcua.stack.core.util.Tree<T>
    getTreeNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
    Get the underlying Tree node for the type identified by nodeId.
    @Nullable T
    getType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
    Get the TypeTree for the type identified by nodeId, if it exists.
    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.
    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.
    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.
    boolean
    isSubtypeOf(T type, T supertype)
    Check if a type is a subtype of some other type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected final org.eclipse.milo.opcua.stack.core.util.Tree<T extends TypeTree.Type> tree
  • Constructor Details

    • TypeTree

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

    • getRoot

      public org.eclipse.milo.opcua.stack.core.util.Tree<T> getRoot()
      Get the root node of the underlying Tree structure.
      Returns:
      the root node of the underlying Tree structure.
    • 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 underlying Tree node for the type identified by nodeId.
      Parameters:
      nodeId - the NodeId of a type.
      Returns:
      the underlying Tree node for the type identified by nodeId.
    • getType

      public @Nullable T getType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
      Get the TypeTree for the type identified by nodeId, if it exists.
      Parameters:
      nodeId - the NodeId of the type.
      Returns:
      TypeTree for the type identified by nodeId, if it exists.
    • containsType

      public boolean containsType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeId)
      Return true if this TypeTree contains a type identified by nodeId.
      Parameters:
      typeId - the NodeId identifying the type.
      Returns:
      true if this TypeTree contains a type identified by nodeId.
    • isSubtypeOf

      public boolean isSubtypeOf(T type, T supertype)
      Check if a type is a subtype of some other type.
      Parameters:
      type - the type to check.
      supertype - the potential supertype.
      Returns:
      true if type is a subtype of supertype.
    • 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:
      true if type is a subtype of the type identified by superTypeId.
    • 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:
      true if typeId identifies a type that is a subtype of supertype.
    • 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:
      true if typeId identifies a type that is a subtype of the type identified by superTypeId.