Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected Group |
parent |
protected org.apache.commons.lang3.concurrent.LazyInitializer<Node> |
targetNode |
Constructor and Description |
---|
AbstractLink(java.lang.String name,
Group parent) |
Modifier and Type | Method and Description |
---|---|
long |
getAddress()
This returns the byte offset into the file of the object header for this
node.
|
Attribute |
getAttribute(java.lang.String name)
Gets the attribute with the given name.
|
java.util.Map<java.lang.String,Attribute> |
getAttributes()
Gets the attributes associated with this
Node . |
java.io.File |
getFile()
Gets the
File object containing this Node .Call Node.getFileAsPath() instead if the file does not reside in the default file system. |
java.nio.file.Path |
getFileAsPath()
Gets the
Path object containing this Node . |
HdfFile |
getHdfFile()
Gets the parent
HdfFile of this node can be useful if you want to
resolve an absolute path in this file. |
java.lang.String |
getName()
Gets the name of this
Node |
Group |
getParent()
|
java.lang.String |
getPath()
Gets the absolute path within the file of this node including the nodes name.
|
NodeType |
getType()
Gets the type of this
Node . |
boolean |
isAttributeCreationOrderTracked()
If
true the insertion order of attributes is tracked (recorded)
in the file. |
boolean |
isBrokenLink()
Checks if the link is valid i.e can be resolved.
|
boolean |
isGroup()
|
boolean |
isLink()
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTarget, getTargetPath
protected final java.lang.String name
protected final Group parent
protected org.apache.commons.lang3.concurrent.LazyInitializer<Node> targetNode
public AbstractLink(java.lang.String name, Group parent)
public java.lang.String getName()
Node
Node
public java.lang.String getPath()
Node
public java.util.Map<java.lang.String,Attribute> getAttributes()
Node
Node
.getAttributes
in interface Node
public Attribute getAttribute(java.lang.String name)
Node
Node.getAttributes()
.get(name).getAttribute
in interface Node
name
- of the requested attributenull
if not availablepublic NodeType getType()
Node
Node
.public boolean isGroup()
Node
public java.io.File getFile()
Node
File
object containing this Node
.Node.getFileAsPath()
instead if the file does not reside in the default file system.public java.nio.file.Path getFileAsPath()
Node
Path
object containing this Node
.getFileAsPath
in interface Node
public HdfFile getHdfFile()
Node
HdfFile
of this node can be useful if you want to
resolve an absolute path in this file.getHdfFile
in interface Node
Node
public boolean isLink()
Node
public long getAddress()
Node
getAddress
in interface Node
public boolean isBrokenLink()
Link
isBrokenLink
in interface Link
true
if the link is broken (i.e. cannot be resolved)public boolean isAttributeCreationOrderTracked()
Node
true
the insertion order of attributes is tracked (recorded)
in the file.isAttributeCreationOrderTracked
in interface Node
true
if attribute creation order is tracked.