Class LinkElement

All Implemented Interfaces:
Element, Node

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

    • 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