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

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






TreeFactory (h5jan API)












org.eclipse.dawnsci.analysis.tree

Class TreeFactory

  • java.lang.Object
    • org.eclipse.dawnsci.analysis.tree.TreeFactory


  • public class TreeFactory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      TreeFactory() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static Attribute createAttribute(java.lang.String attrName)
      Create an attribute with name
      static Attribute createAttribute(java.lang.String attrName, java.lang.Object attrValue)
      Create an attribute with name and value
      static Attribute createAttribute(java.lang.String attrName, java.lang.Object attrValue, boolean isUnsigned)
      Create an attribute with name, value and sign
      static DataNode createDataNode(long oid)
      Create a data node with given object ID
      static GroupNode createGroupNode(long oid)
      Create a group node with given object ID
      static NodeLink createNodeLink(java.lang.String link, Node source, Node destination)
      Create a node link
      static SymbolicNode createSymbolicNode(long oid, Tree tree, GroupNode groupWithNode, java.lang.String pathToNode)
      Create a symbolic link with given object ID, from tree, group and node path
      static SymbolicNode createSymbolicNode(long oid, java.net.URI uri, GroupNode groupWithNode, java.lang.String pathToNode)
      Create a symbolic link with given object ID, from URI to tree, group and node path
      static Tree createTree(long oid, java.net.URI uri)
      Create a tree with given object ID and URI
      static TreeFile createTreeFile(long oid, java.lang.String fileName)
      Create a tree file with given object ID and file name
      static TreeFile createTreeFile(long oid, java.net.URI uri)
      Create a tree file with given object ID and URI
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeFactory

        public TreeFactory()
    • Method Detail

      • createAttribute

        public static Attribute createAttribute(java.lang.String attrName)
        Create an attribute with name
        Parameters:
        attrName -
      • createAttribute

        public static Attribute createAttribute(java.lang.String attrName,
                                                java.lang.Object attrValue)
        Create an attribute with name and value
        Parameters:
        attrName -
        attrValue - (usually, this is a Java array)
      • createAttribute

        public static Attribute createAttribute(java.lang.String attrName,
                                                java.lang.Object attrValue,
                                                boolean isUnsigned)
        Create an attribute with name, value and sign
        Parameters:
        attrName -
        attrValue - (usually, this is a Java array)
        isUnsigned - true if items are unsigned but held in signed primitives
      • createNodeLink

        public static NodeLink createNodeLink(java.lang.String link,
                                              Node source,
                                              Node destination)
        Create a node link
        Parameters:
        path - to source
        link - name
        source - node which link starts from (can be null)
        destination - node which link points to
      • createSymbolicNode

        public static SymbolicNode createSymbolicNode(long oid,
                                                      Tree tree,
                                                      GroupNode groupWithNode,
                                                      java.lang.String pathToNode)
        Create a symbolic link with given object ID, from tree, group and node path
        Parameters:
        oid - object ID
        tree -
        groupWithNode - (can be null if path is absolute)
        pathToNode - (ends in separator if group, otherwise a dataset)
      • createSymbolicNode

        public static SymbolicNode createSymbolicNode(long oid,
                                                      java.net.URI uri,
                                                      GroupNode groupWithNode,
                                                      java.lang.String pathToNode)
        Create a symbolic link with given object ID, from URI to tree, group and node path
        Parameters:
        oid - object ID
        uri -
        groupWithNode - (can be null if path is absolute)
        pathToNode - (ends in separator if group, otherwise a dataset)
      • createDataNode

        public static DataNode createDataNode(long oid)
        Create a data node with given object ID
        Parameters:
        oid - object ID
      • createGroupNode

        public static GroupNode createGroupNode(long oid)
        Create a group node with given object ID
        Parameters:
        oid - object ID
      • createTree

        public static Tree createTree(long oid,
                                      java.net.URI uri)
        Create a tree with given object ID and URI
        Parameters:
        oid - object ID
        uri - (can be null)
      • createTreeFile

        public static TreeFile createTreeFile(long oid,
                                              java.net.URI uri)
        Create a tree file with given object ID and URI
        Parameters:
        oid - object ID
        uri -
      • createTreeFile

        public static TreeFile createTreeFile(long oid,
                                              java.lang.String fileName)
        Create a tree file with given object ID and file name
        Parameters:
        oid - object ID
        fileName -




© 2015 - 2024 Weber Informatics LLC | Privacy Policy