uk.ac.starlink.votable
Class ParamElement

java.lang.Object
  |
  +--uk.ac.starlink.votable.VOElement
        |
        +--uk.ac.starlink.votable.FieldElement
              |
              +--uk.ac.starlink.votable.ParamElement

public class ParamElement
extends FieldElement

Object representing a PARAM element in a VOTable.


Constructor Summary
ParamElement(Element el, String systemId)
           
 
Method Summary
 Object getObject()
          Returns the object represented by the value of this Param.
 String getValue()
          Returns the value of the value attribute, or an empty string if it has none.
 String toString()
          Returns the same value as VOElement.getHandle().
 
Methods inherited from class uk.ac.starlink.votable.FieldElement
getActualValues, getArraysize, getDatatype, getLegalValues, getNull, getUcd, getUnit
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParamElement

public ParamElement(Element el,
                    String systemId)
Method Detail

getValue

public String getValue()
Returns the value of the value attribute, or an empty string if it has none.


getObject

public Object getObject()
Returns the object represented by the value of this Param. This is constructed by decoding the value attribute in the same way as for TABLEDATA content of a table for a FIELD of this kind.

Returns:
the value object

toString

public String toString()
Description copied from class: VOElement
Returns the same value as VOElement.getHandle().

Overrides:
toString in class FieldElement
Returns:
a string representation of this object

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