uk.ac.starlink.votable
Class LinkElement

java.lang.Object
  extended byuk.ac.starlink.votable.dom.DelegatingNode
      extended byuk.ac.starlink.votable.dom.DelegatingElement
          extended byuk.ac.starlink.votable.VOElement
              extended byuk.ac.starlink.votable.LinkElement
All Implemented Interfaces:
Element, Node

public class LinkElement
extends VOElement

Object representing a LINK element in a VOTable.


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 String getHandle()
          Returns the title attribute if there is one, otherwise defers to superclass implementation.
 URL getHref()
          Returns the value of this LinkElement's 'href' attribute as a URL.
 
Methods inherited from class uk.ac.starlink.votable.VOElement
getChildByName, getChildren, getChildrenByName, getDescription, getID, getName, getParent, getSystemId, toString
 
Methods inherited from class uk.ac.starlink.votable.dom.DelegatingElement
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from class uk.ac.starlink.votable.dom.DelegatingNode
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

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

getHandle

public String getHandle()
Returns the title attribute if there is one, otherwise defers to superclass implementation.

Overrides:
getHandle in class VOElement
Returns:
a label for this element

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