public final class HDF5LinkInformation
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
checkExists() |
boolean |
equals(java.lang.Object obj) |
boolean |
exists()
Returns
true , if the link exists. |
java.lang.String |
getName()
Returns the name of this link in the HDF5 file (the path without the parent).
|
java.lang.String |
getParentPath()
Returns the parent of the path of this link the HDF5 file.
|
java.lang.String |
getPath()
Returns the path of this link in the HDF5 file.
|
HDF5ObjectType |
getType()
Returns the type of this link.
|
int |
hashCode() |
boolean |
isDataSet()
Returns
true , if the link is a data set. |
boolean |
isDataType()
Returns
true , if the link is a data type. |
boolean |
isExternalLink()
Returns
true , if the link is an external link. |
boolean |
isGroup()
Returns
true , if the link is a group. |
boolean |
isSoftLink()
Returns
true , if the link is a soft link. |
boolean |
isSymbolicLink()
Returns
true , if the link is either a soft link or an external link. |
java.lang.String |
tryGetExternalLinkFilename()
Returns the filename of an external link, or
null , if this link does not exist or is not an external link. |
java.lang.String |
tryGetExternalLinkTarget()
Returns the external link target of this link, or
null , if this link does not exist or is not an external link. |
java.lang.String |
tryGetSymbolicLinkTarget()
Returns the symbolic link target of this link, or
null , if this link does not exist or is not a symbolic link. |
public java.lang.String tryGetSymbolicLinkTarget()
null
, if this link does not exist or is not a symbolic link.
Note that external links have a special format: They start with a prefix " EXTERNAL::
", then comes the path of the external file
(beware that this part uses the native path separator, i.e. "\" on Windows). Finally, separated by "::
", the path of the link in
the external file is provided (this part always uses "/" as path separator).
public java.lang.String tryGetExternalLinkFilename()
null
, if this link does not exist or is not an external link.public java.lang.String tryGetExternalLinkTarget()
null
, if this link does not exist or is not an external link.public boolean isSoftLink()
true
, if the link is a soft link.public boolean isExternalLink()
true
, if the link is an external link.public boolean isSymbolicLink()
true
, if the link is either a soft link or an external link.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void checkExists() throws HDF5JavaException
HDF5JavaException
- If the link does not exist.public java.lang.String getPath()
public java.lang.String getParentPath()
public java.lang.String getName()
public HDF5ObjectType getType()
public boolean exists()
true
, if the link exists.public boolean isGroup()
true
, if the link is a group.public boolean isDataSet()
true
, if the link is a data set.public boolean isDataType()
true
, if the link is a data type.