uk.ac.starlink.votable
Class LinkElement
java.lang.Object
|
+--uk.ac.starlink.votable.VOElement
|
+--uk.ac.starlink.votable.LinkElement
- public class LinkElement
- extends VOElement
Object representing a LINK element in a VOTable.
Method Summary |
URL |
getHref()
Returns the value of this LinkElement's 'href' attribute as a URL. |
Methods inherited from class uk.ac.starlink.votable.VOElement |
equals, getAttribute, getAttribute, getChildByName, getChildren, getChildrenByName, getContext, getDescendantsByName, getDescription, getElement, getHandle, getID, getName, getParent, getSource, getSystemId, getTagName, getTextContent, hasAttribute, hashCode, toString |
LinkElement
public LinkElement(Element el,
String systemId)
getHref
public URL getHref()
throws MalformedURLException
- Returns the value of this LinkElement's 'href' attribute as a URL.
It is resolved against the base URL of this VOTable if it
represents a relative URL.
- Returns:
- the URL represented by this LinkElement's 'href' attribute,
or null if it has none
- Throws:
MalformedURLException
- in the case of a badly-formed URL