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, wait
getNotNullURL, getPath, getText, getURL, getURLAsString, getURLAsString, getURLAsString
getDeclaration, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStyle
hasLineNumber
protected boolean isValid
protected boolean isAbsolute
public void setLineNumber(int lineNumber)
lineNumber
- the line numberpublic int getLineNumber()
getLineNumber
in interface ElementReference
public void setValid(boolean isValid)
setValid
in interface ExternalLink
isValid
- true if the link is validpublic boolean isValid()
isValid
in interface ExternalLink
public void setCustomStyles(java.util.Set<java.lang.String> classes)
setCustomStyles
in interface StyledElement
classes
- the custom element classespublic java.util.Set<java.lang.String> getCustomStyles()
getCustomStyles
in interface StyledElement
public boolean isAbsolute()
isAbsolute
in interface ExternalLink
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence