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.


Constructor Summary
LinkElement(Element el, String systemId)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkElement

public LinkElement(Element el,
                   String systemId)
Method Detail

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

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.