public class XMLExternalLink
extends org.docgene.model.AbstractLink
implements org.docgene.model.URLLinkElement
TYPE_NONE
Constructor and Description |
---|
XMLExternalLink() |
Modifier and Type | Method and Description |
---|---|
void |
bind(java.lang.String urlS,
java.net.URL url)
Bind an URL for the link.
|
void |
bind(java.lang.String urlS,
java.net.URL url,
boolean isAbsolute)
Bind an URL for the link.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.lang.String |
getPath()
Return the link path.
|
java.lang.String |
getText()
Return the link description text.
|
java.net.URL |
getURL()
Return the link URL.
|
java.lang.String |
getURLAsString()
Return the complete link URL as a String.
|
void |
setText(java.lang.String text)
Set the link description text.
|
void |
setURL(java.net.URL url)
Set the link URL.
|
getCustomStyles, getLineNumber, isAbsolute, isValid, setCustomStyles, setLineNumber, setValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNotNullURL, getURLAsString, getURLAsString
getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStyle
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public void setText(java.lang.String text)
text
- the link description textpublic java.net.URL getURL()
getURL
in interface org.docgene.model.ExternalLink
getURL
in interface org.docgene.model.URLLinkElement
public java.lang.String getText()
getText
in interface org.docgene.model.ExternalLink
public void setURL(java.net.URL url)
url
- the URLpublic java.lang.String getPath()
getPath
in interface org.docgene.model.ExternalLink
public java.lang.String getURLAsString()
getURL()
and return the String value of the URL.getURLAsString
in interface org.docgene.model.ExternalLink
public void bind(java.lang.String urlS, java.net.URL url, boolean isAbsolute)
urlS
- the URL as Stringurl
- the URLisAbsolute
- true for an absolute URLpublic void bind(java.lang.String urlS, java.net.URL url)
bind
in interface org.docgene.model.URLLinkElement
urlS
- the URL as Stringurl
- the URLCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence