generated.docs.javadoc.org.eclipse.dawnsci.analysis.tree.impl.SymbolicNodeImpl.html Maven / Gradle / Ivy
SymbolicNodeImpl (h5jan API)
org.eclipse.dawnsci.analysis.tree.impl
Class SymbolicNodeImpl
- java.lang.Object
-
- org.eclipse.dawnsci.analysis.tree.impl.NodeImpl
-
- org.eclipse.dawnsci.analysis.tree.impl.SymbolicNodeImpl
-
- All Implemented Interfaces:
- java.io.Serializable, Node, SymbolicNode
public class SymbolicNodeImpl
extends NodeImpl
implements SymbolicNode, java.io.Serializable
Symbolic link to another node
- See Also:
- Serialized Form
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected static long
serialVersionUID
-
Fields inherited from class org.eclipse.dawnsci.analysis.tree.impl.NodeImpl
attributes, id, INDENT
-
Constructor Summary
Constructors
Constructor and Description
SymbolicNodeImpl(long oid,
Tree tree,
GroupNode groupWithNode,
java.lang.String pathToNode)
Construct a symbolic link with given object ID, from tree, group and node path
SymbolicNodeImpl(long oid,
java.net.URI uri,
GroupNode groupWithNode,
java.lang.String pathToNode)
Construct a symbolic link with given object ID, from URI to tree, group and node path
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
boolean
equals(java.lang.Object obj)
Node
getNode()
Get node referenced by symbolic link
NodeLink
getNodeLink()
Get node link referenced by symbolic link
java.lang.String
getPath()
java.net.URI
getSourceURI()
int
hashCode()
boolean
isData()
boolean
isSymbolicNode()
java.lang.String
toString()
-
Methods inherited from class org.eclipse.dawnsci.analysis.tree.impl.NodeImpl
addAttribute, containsAttribute, getAttribute, getAttributeIterator, getAttributeNameIterator, getID, getNumberOfAttributes, isDataNode, isGroupNode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.dawnsci.analysis.api.tree.Node
addAttribute, containsAttribute, getAttribute, getAttributeIterator, getAttributeNameIterator, getID, getNumberOfAttributes, isDataNode, isGroupNode
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
Constructor Detail
-
SymbolicNodeImpl
public SymbolicNodeImpl(long oid,
Tree tree,
GroupNode groupWithNode,
java.lang.String pathToNode)
Construct 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)
-
SymbolicNodeImpl
public SymbolicNodeImpl(long oid,
java.net.URI uri,
GroupNode groupWithNode,
java.lang.String pathToNode)
Construct 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)
-
Method Detail
-
getNodeLink
public NodeLink getNodeLink()
Description copied from interface: SymbolicNode
Get node link referenced by symbolic link
- Specified by:
getNodeLink
in interface SymbolicNode
- Returns:
- node or null if tree or destination does not exist
-
getNode
public Node getNode()
Description copied from interface: SymbolicNode
Get node referenced by symbolic link
- Specified by:
getNode
in interface SymbolicNode
- Returns:
- node or null if it does not exist
-
isData
public boolean isData()
- Specified by:
isData
in interface SymbolicNode
- Returns:
- true if linked node is specified as data (even if it does not exist)
-
getPath
public java.lang.String getPath()
- Specified by:
getPath
in interface SymbolicNode
- Returns:
- path to linked node
-
getSourceURI
public java.net.URI getSourceURI()
- Specified by:
getSourceURI
in interface SymbolicNode
- Returns:
- URI to source of tree or null if it does not exist
-
isSymbolicNode
public boolean isSymbolicNode()
- Specified by:
isSymbolicNode
in interface Node
- Overrides:
isSymbolicNode
in class NodeImpl
- Returns:
true
if this node is a SymbolicNode
,
false
otherwise
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object