Enum Constant and Description |
---|
INSTANCE |
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 . |
Node |
getByPath(java.lang.String path)
Gets a
Node by path. |
Node |
getChild(java.lang.String name)
Gets a child of this group by name.
|
java.util.Map<java.lang.String,Node> |
getChildren()
Gets the children in this group, i.e other groups and datasets contained
inside this group.
|
Dataset |
getDatasetByPath(java.lang.String path)
Gets a
Dataset by path. |
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 |
isGroup()
|
boolean |
isLink()
|
boolean |
isLinkCreationOrderTracked()
If
true the insertion order of links into this Group is
tracked (recorded) in the file. |
java.util.Iterator<Node> |
iterator() |
static NoParent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NoParent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoParent INSTANCE
public static NoParent[] values()
for (NoParent c : NoParent.values()) System.out.println(c);
public static NoParent valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.Map<java.lang.String,Node> getChildren()
Group
getChildren
in interface Group
Node
of this groups childrenpublic Node getChild(java.lang.String name)
Group
Group.getChildren()
.get(name).public Node getByPath(java.lang.String path)
Group
Node
by path. The path given will be relative to this node.public Dataset getDatasetByPath(java.lang.String path)
Group
Dataset
by path. The path given will be relative to this node.getDatasetByPath
in interface Group
path
- the path to the requested datasetpublic boolean isLinkCreationOrderTracked()
Group
true
the insertion order of links into this Group
is
tracked (recorded) in the file.isLinkCreationOrderTracked
in interface Group
true
if link creation order is tracked,
false
otherwisepublic 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 long getAddress()
Node
getAddress
in interface Node
public boolean isLink()
Node
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.