Class LinkElement

  • All Implemented Interfaces:
    org.w3c.dom.Element, org.w3c.dom.Node

    public class LinkElement
    extends VOElement
    Object representing a LINK element in a VOTable.
    Author:
    Mark Taylor (Starlink)
    • Method Detail

      • getHref

        public java.net.URL getHref()
                             throws java.net.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:
        java.net.MalformedURLException - in the case of a badly-formed URL
      • getHandle

        public java.lang.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