public interface Link extends Node
Modifier and Type | Method and Description |
---|---|
Node |
getTarget()
Resolves the link and returns the
Node the link points to. |
java.lang.String |
getTargetPath()
Gets the path this link points to, obtaining it will not require the link to
be resolved.
|
boolean |
isBrokenLink()
Checks if the link is valid i.e can be resolved.
|
getAddress, getAttribute, getAttributes, getFile, getFileAsPath, getHdfFile, getName, getParent, getPath, getType, isAttributeCreationOrderTracked, isGroup, isLink
Node getTarget()
Node
the link points to. If
isBrokenLink()
returns true
calling this method will
throw.Node
this link points toHdfBrokenLinkException
- if the link is brokenjava.lang.String getTargetPath()
boolean isBrokenLink()
true
if the link is broken (i.e. cannot be resolved)