All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generated.docs.javadoc.org.eclipse.dawnsci.analysis.tree.impl.GroupNodeImpl.html Maven / Gradle / Ivy






GroupNodeImpl (h5jan API)












org.eclipse.dawnsci.analysis.tree.impl

Class GroupNodeImpl

    • Constructor Detail

      • GroupNodeImpl

        public GroupNodeImpl(long oid)
        Construct a group node with given object ID
        Parameters:
        oid - object ID
    • Method Detail

      • setGlobalPool

        public void setGlobalPool(java.util.Map<java.lang.Long,Node> globalPool)
        Description copied from interface: GroupNode
        Set a reference to the global pool of nodes
        Specified by:
        setGlobalPool in interface GroupNode
      • getGlobalPool

        public java.util.Map<java.lang.Long,Node> getGlobalPool()
        Specified by:
        getGlobalPool in interface GroupNode
        Returns:
        global pool of cached nodes
      • isPopulated

        public boolean isPopulated()
        Specified by:
        isPopulated in interface GroupNode
        Returns:
        true if it has been populated with any nodes
      • getNumberOfNodelinks

        public int getNumberOfNodelinks()
        Specified by:
        getNumberOfNodelinks in interface GroupNode
        Returns:
        number of node-links held in group
      • getNodeLink

        public NodeLink getNodeLink(java.lang.String name)
        Specified by:
        getNodeLink in interface GroupNode
        Returns:
        node link to child node of given name
      • addNode

        public void addNode(java.lang.String name,
                            Node node)
        Description copied from interface: GroupNode
        Add given node with given path and name
        Specified by:
        addNode in interface GroupNode
      • getNumberOfGroupNodes

        public int getNumberOfGroupNodes()
        Specified by:
        getNumberOfGroupNodes in interface GroupNode
        Returns:
        number of child groups in group
      • containsNode

        public boolean containsNode(java.lang.String name)
        Description copied from interface: GroupNode
        Returns whether this group contains a child node with the given name
        Specified by:
        containsNode in interface GroupNode
        Parameters:
        name - name
        Returns:
        true if this node contains a child node with the given name, false otherwise
      • containsGroupNode

        public boolean containsGroupNode(java.lang.String name)
        Specified by:
        containsGroupNode in interface GroupNode
        Returns:
        true if group contains child group of given name
      • getGroupNode

        public GroupNode getGroupNode(java.lang.String name)
        Description copied from interface: GroupNode
        Get (child) group node of given name. A SymbolicNode with the given name is resolved to its destination node.
        Specified by:
        getGroupNode in interface GroupNode
        Returns:
        group, or null if no such group exists
      • getGroupNodes

        public java.util.List<GroupNode> getGroupNodes()
        Description copied from interface: GroupNode
        Get (child) group nodes. Any SymbolicNodes are resolved to their destination nodes.
        Specified by:
        getGroupNodes in interface GroupNode
        Returns:
        groups
      • getGroupNodeMap

        public java.util.Map<java.lang.String,GroupNode> getGroupNodeMap()
        Description copied from interface: GroupNode
        Get (child) group nodes, as a map where the key is the name of that group node within this (parent) group node. Any SymbolicNode are resolved to their destination nodes.
        Specified by:
        getGroupNodeMap in interface GroupNode
        Returns:
        group node map
      • addGroupNode

        public void addGroupNode(java.lang.String name,
                                 GroupNode g)
        Description copied from interface: GroupNode
        Add (child) group node with given path and name
        Specified by:
        addGroupNode in interface GroupNode
        g - group
      • removeGroupNode

        public void removeGroupNode(java.lang.String name)
        Description copied from interface: GroupNode
        Remove group node of given name
        Specified by:
        removeGroupNode in interface GroupNode
      • removeGroupNode

        public void removeGroupNode(GroupNode g)
        Description copied from interface: GroupNode
        Remove given group node
        Specified by:
        removeGroupNode in interface GroupNode
        Parameters:
        g - group node
      • getNumberOfDataNodes

        public int getNumberOfDataNodes()
        Specified by:
        getNumberOfDataNodes in interface GroupNode
        Returns:
        number of data nodes held in group
      • containsDataNode

        public boolean containsDataNode(java.lang.String name)
        Specified by:
        containsDataNode in interface GroupNode
        Returns:
        true if group contains data node of given name
      • getDataNode

        public DataNode getDataNode(java.lang.String name)
        Description copied from interface: GroupNode
        Get data node of given name. A SymbolicNode with the given name is resolved to its destination node.
        Specified by:
        getDataNode in interface GroupNode
        Returns:
        datanode, or null if no such data node exists
      • getDataNodes

        public java.util.List<DataNode> getDataNodes()
        Description copied from interface: GroupNode
        Get all data nodes. Any SymbolicNodes are resolved to their destination nodes.
        Specified by:
        getDataNodes in interface GroupNode
        Returns:
        data nodes
      • getDataNodeMap

        public java.util.Map<java.lang.String,DataNode> getDataNodeMap()
        Description copied from interface: GroupNode
        Get all data nodes, keyed by name within this group node. Any SymbolicNodes are resolved to their destination nodes.
        Specified by:
        getDataNodeMap in interface GroupNode
        Returns:
        data node map
      • getNode

        public Node getNode(java.lang.String name)
        Description copied from interface: GroupNode
        Returns the child node of the given name, or null if no such node exists.
        Specified by:
        getNode in interface GroupNode
        Parameters:
        name - name of child node within this group node
        Returns:
        child node with given name if it exists, otherwise null
      • addDataNode

        public void addDataNode(java.lang.String name,
                                DataNode d)
        Description copied from interface: GroupNode
        Add given data node with given path and name
        Specified by:
        addDataNode in interface GroupNode
        d - dataset
      • createNodeLink

        protected NodeLink createNodeLink(java.lang.String name,
                                          Node n)
      • removeDataNode

        public void removeDataNode(java.lang.String name)
        Description copied from interface: GroupNode
        Remove the data node of given name.
        Specified by:
        removeDataNode in interface GroupNode
      • removeDataNode

        public void removeDataNode(DataNode d)
        Description copied from interface: GroupNode
        Remove the given data node from this group.
        Specified by:
        removeDataNode in interface GroupNode
        Parameters:
        d - data node
      • addSymbolicNode

        public void addSymbolicNode(java.lang.String name,
                                    SymbolicNode s)
        Description copied from interface: GroupNode
        Add linked node with given path and name
        Specified by:
        addSymbolicNode in interface GroupNode
        s - symbolic link
      • containsSymbolicNode

        public boolean containsSymbolicNode(java.lang.String name)
        Description copied from interface: GroupNode
        Returns whether this group node contains a symbolic node of the given name.
        Specified by:
        containsSymbolicNode in interface GroupNode
        Returns:
        true if group contains a symbolic node of given name, false otherwise
      • getSymbolicNode

        public SymbolicNode getSymbolicNode(java.lang.String name)
        Description copied from interface: GroupNode
        Get (child) symbolic node of given name.
        Specified by:
        getSymbolicNode in interface GroupNode
        Returns:
        symbolic node, or null if no such node exists
      • removeSymbolicNode

        public void removeSymbolicNode(java.lang.String name)
        Description copied from interface: GroupNode
        Removes the symbolic node with the given name.
        Specified by:
        removeSymbolicNode in interface GroupNode
        Parameters:
        name - name of symbolic node to remove
      • removeSymbolicNode

        public void removeSymbolicNode(SymbolicNode s)
        Description copied from interface: GroupNode
        Removes the given symbolic node from this tree.
        Specified by:
        removeSymbolicNode in interface GroupNode
        Parameters:
        s - symbolic node
      • findLinkedNodeName

        public java.lang.String findLinkedNodeName(Node node)
        Description copied from interface: GroupNode
        Find name of node linked to this group
        Specified by:
        findLinkedNodeName in interface GroupNode
        Returns:
        name (or null, if node is not in group)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class NodeImpl
      • appendNodeString

        protected void appendNodeString(java.lang.StringBuilder s,
                                        java.lang.String n)
      • getNodeNameIterator

        public java.util.Iterator<java.lang.String> getNodeNameIterator()
        Specified by:
        getNodeNameIterator in interface GroupNode
        Returns:
        iterator over child names in group
      • getDatasets

        public java.util.List<ILazyDataset> getDatasets(java.lang.String name)
        Description copied from interface: GroupNode
        Recursively find datasets of given name
        Specified by:
        getDatasets in interface GroupNode
        Returns:
        list of (unique) datasets
      • findNodeLink

        public NodeLink findNodeLink(java.lang.String pathname)
        Description copied from interface: GroupNode
        Recursively find link to node given by path name
        Specified by:
        findNodeLink in interface GroupNode
        Returns:
        node or null if not found
      • iterator

        public java.util.Iterator<NodeLink> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<NodeLink>
        Specified by:
        iterator in interface GroupNode
        Returns:
        iterator over links to children in group
      • getNames

        public java.util.Collection<java.lang.String> getNames()
        Specified by:
        getNames in interface GroupNode
        Returns:
        names of nodes




© 2015 - 2024 Weber Informatics LLC | Privacy Policy