Class TreeFactory
java.lang.Object
org.eclipse.dawnsci.analysis.tree.TreeFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributecreateAttribute(String attrName) Create an attribute with namestatic AttributecreateAttribute(String attrName, Object attrValue) Create an attribute with name and valuestatic AttributecreateAttribute(String attrName, Object attrValue, boolean isUnsigned) Create an attribute with name, value and signstatic DataNodecreateDataNode(byte[] oid) Create a data node with given object IDstatic DataNodecreateDataNode(long oid) Create a data node with given object IDstatic GroupNodecreateGroupNode(byte[] oid) Create a group node with given object IDstatic GroupNodecreateGroupNode(long oid) Create a group node with given object IDstatic NodeLinkcreateNodeLink(String link, Node source, Node destination) Create a node linkstatic SymbolicNodecreateSymbolicNode(byte[] oid, URI uri, GroupNode groupWithNode, String pathToNode) Create a symbolic link with given object ID, from URI to tree, group and node pathstatic SymbolicNodecreateSymbolicNode(byte[] oid, Tree tree, GroupNode groupWithNode, String pathToNode) Create a symbolic link with given object ID, from tree, group and node pathstatic SymbolicNodecreateSymbolicNode(long oid, URI uri, GroupNode groupWithNode, String pathToNode) Create a symbolic link with given object ID, from URI to tree, group and node pathstatic SymbolicNodecreateSymbolicNode(long oid, Tree tree, GroupNode groupWithNode, String pathToNode) Create a symbolic link with given object ID, from tree, group and node pathstatic TreecreateTree(byte[] oid, URI uri) Create a tree with given object ID and URIstatic TreecreateTree(long oid, URI uri) Create a tree with given object ID and URIstatic TreeFilecreateTreeFile(byte[] oid, String fileName) Create a tree file with given object ID and file namestatic TreeFilecreateTreeFile(byte[] oid, URI uri) Create a tree file with given object ID and URIstatic TreeFilecreateTreeFile(long oid, String fileName) Create a tree file with given object ID and file namestatic TreeFilecreateTreeFile(long oid, URI uri) Create a tree file with given object ID and URI
-
Constructor Details
-
TreeFactory
public TreeFactory()
-
-
Method Details
-
createAttribute
Create an attribute with name- Parameters:
attrName-
-
createAttribute
Create an attribute with name and value- Parameters:
attrName-attrValue- (usually, this is a Java array)
-
createAttribute
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
Create a node link- Parameters:
link- namesource- node which link starts from (can be null)destination- node which link points topath- to source
-
createSymbolicNode
public static SymbolicNode createSymbolicNode(byte[] oid, Tree tree, GroupNode groupWithNode, String pathToNode) Create a symbolic link with given object ID, from tree, group and node path- Parameters:
oid- object IDtree-groupWithNode- (can be null if path is absolute)pathToNode- (ends in separator if group, otherwise a dataset)
-
createSymbolicNode
public static SymbolicNode createSymbolicNode(byte[] oid, URI uri, GroupNode groupWithNode, String pathToNode) Create a symbolic link with given object ID, from URI to tree, group and node path- Parameters:
oid- object IDuri-groupWithNode- (can be null if path is absolute)pathToNode- (ends in separator if group, otherwise a dataset)
-
createDataNode
Create a data node with given object ID- Parameters:
oid- object ID
-
createGroupNode
Create a group node with given object ID- Parameters:
oid- object ID
-
createTree
Create a tree with given object ID and URI- Parameters:
oid- object IDuri- (can be null)
-
createTreeFile
Create a tree file with given object ID and URI- Parameters:
oid- object IDuri-
-
createTreeFile
Create a tree file with given object ID and file name- Parameters:
oid- object IDfileName-
-
createSymbolicNode
public static SymbolicNode createSymbolicNode(long oid, Tree tree, GroupNode groupWithNode, String pathToNode) Create a symbolic link with given object ID, from tree, group and node path- Parameters:
oid- object IDtree-groupWithNode- (can be null if path is absolute)pathToNode- (ends in separator if group, otherwise a dataset)
-
createSymbolicNode
public static SymbolicNode createSymbolicNode(long oid, URI uri, GroupNode groupWithNode, String pathToNode) Create a symbolic link with given object ID, from URI to tree, group and node path- Parameters:
oid- object IDuri-groupWithNode- (can be null if path is absolute)pathToNode- (ends in separator if group, otherwise a dataset)
-
createDataNode
Create a data node with given object ID- Parameters:
oid- object ID
-
createGroupNode
Create a group node with given object ID- Parameters:
oid- object ID
-
createTree
Create a tree with given object ID and URI- Parameters:
oid- object IDuri- (can be null)
-
createTreeFile
Create a tree file with given object ID and URI- Parameters:
oid- object IDuri-
-
createTreeFile
Create a tree file with given object ID and file name- Parameters:
oid- object IDfileName-
-