public static interface Proxy.Link extends Proxy.LinkRO
node.link
- read-write.
To set links use the attributes of the Proxy.Link
and Proxy.LinkRO
object:
// a normal href node.link.text = 'http://www.google.com' // create a node to the parent node node.link.node = node.parent // if you have a URI object node.link.uri = new URI('http://www.google.com') // file node.link.file = map.file
Modifier and Type | Method and Description |
---|---|
boolean |
remove()
removes the link.
|
boolean |
set(java.lang.String target)
Deprecated.
since 1.2 - use
setText(String) instead. |
void |
setFile(java.io.File file)
sets target to file.
|
void |
setNode(Proxy.Node node)
target is a node of the same map.
|
void |
setText(java.lang.String target)
target is a stringified URI.
|
void |
setUri(java.net.URI uri)
sets target to uri.
|
void setText(java.lang.String target)
java.lang.IllegalArgumentException
- if target is not convertible into a URI
.void setUri(java.net.URI uri)
void setFile(java.io.File file)
void setNode(Proxy.Node node)
java.lang.IllegalArgumentException
- if node belongs to another map.boolean set(java.lang.String target)
setText(String)
instead.boolean remove()
node.link.text = null
.