public abstract class AbstractIDElement extends java.lang.Object implements IDElement, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id
The element ID.
|
Constructor and Description |
---|
AbstractIDElement() |
Modifier and Type | Method and Description |
---|---|
AbstractIDElement |
clone() |
java.lang.String |
getDescription()
Return the element description.
|
java.lang.String |
getID()
Returns the element id.
|
java.net.URL |
getURL()
Return the URL of the element.
|
java.lang.String |
getURLAsString(java.net.URL baseURL)
Return the URL of the label as a String, relative to a base URL.
|
boolean |
hasURL()
Return true if there is a URL hyperlink specified for the label.
|
void |
setDescription(java.lang.String desc)
Set the element description.
|
void |
setURL(java.io.File file)
Set the URL of the label as a File.
|
void |
setURL(java.net.URL url)
Set the URL of the label.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasDescription, isTemplate
public AbstractIDElement clone()
clone
in class java.lang.Object
public java.lang.String getID()
public void setURL(java.io.File file)
public void setURL(java.net.URL url)
public boolean hasURL()
public java.lang.String getURLAsString(java.net.URL baseURL)
getURLAsString
in interface IDElement
baseURL
- the baseURLpublic java.net.URL getURL()
public void setDescription(java.lang.String desc)
setDescription
in interface IDElement
desc
- the descriptionpublic java.lang.String getDescription()
getDescription
in interface IDElement
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence