public abstract class AbstractLink extends java.lang.Object implements ExternalLink
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isAbsolute
True if the link is absolute.
|
protected boolean |
isValid
True if the link is valid.
|
TYPE_NONE| Constructor and Description |
|---|
AbstractLink() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getCustomStyles()
Return the element custom classes.
|
int |
getLineNumber()
Return the line where the reference appear.
|
boolean |
isAbsolute()
Return true if the link is absolute.
|
boolean |
isValid()
Return true if the link is valid.
|
void |
setCustomStyles(java.util.Set<java.lang.String> classes)
Set the element custom classes.
|
void |
setLineNumber(int lineNumber)
Set the line number where the reference appear.
|
void |
setValid(boolean isValid)
Set if the link is valid.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNotNullURL, getPath, getText, getURL, getURLAsString, getURLAsString, getURLAsStringgetDeclaration, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStylehasLineNumberprotected boolean isValid
protected boolean isAbsolute
public void setLineNumber(int lineNumber)
lineNumber - the line numberpublic int getLineNumber()
getLineNumber in interface ElementReferencepublic void setValid(boolean isValid)
setValid in interface ExternalLinkisValid - true if the link is validpublic boolean isValid()
isValid in interface ExternalLinkpublic void setCustomStyles(java.util.Set<java.lang.String> classes)
setCustomStyles in interface StyledElementclasses - the custom element classespublic java.util.Set<java.lang.String> getCustomStyles()
getCustomStyles in interface StyledElementpublic boolean isAbsolute()
isAbsolute in interface ExternalLinkCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence