public class ExternalLink extends AbstractLink
name, parent, targetNode
Constructor and Description |
---|
ExternalLink(java.lang.String targetFile,
java.lang.String targetPath,
java.lang.String name,
Group parent) |
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.
|
java.lang.String |
toString() |
getAddress, getAttribute, getAttributes, getFile, getFileAsPath, getHdfFile, getName, getParent, getPath, getType, isAttributeCreationOrderTracked, isBrokenLink, isGroup, isLink
public ExternalLink(java.lang.String targetFile, java.lang.String targetPath, java.lang.String name, Group parent)
public Node getTarget()
Link
Node
the link points to. If
Link.isBrokenLink()
returns true
calling this method will
throw.Node
this link points topublic java.lang.String getTargetPath()
Link
public java.lang.String toString()
toString
in class java.lang.Object