|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.votable.dom.DelegatingNode
uk.ac.starlink.votable.dom.DelegatingElement
uk.ac.starlink.votable.VOElement
Element implementation for use within VOTable documents. This implements the DOM Element interface, and so can be used just as a normal DOM element (including adding/removing/editing nodes). However, it also provides a few extra convenience methods, some of which are based on knowledge of the nature of the elements within a VOTable document.
This class is extended to provide the classes associated with
specific VOTable elements. These in turn provide more additional
methods associated with the specific properties of such elements,
for instance the TableElement
class has a getData
which returns the actual table cell data. Those element types
which don't require any extra associated functionality (such as
RESOURCE) don't have their own subclass, they are just represented
as VOElements. The class of each element in the DOM
is determined by its tag name - so every TABLE element will be
represented in the DOM as a TableElement
and so on.
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 | |
VOElement |
getChildByName(String tagname)
Returns the first child element of this element which has a given name. |
VOElement[] |
getChildren()
Returns the child elements of this element. |
VOElement[] |
getChildrenByName(String tagname)
Returns all the child elements of this element which have a given name. |
String |
getDescription()
Returns the text of a DESCRIPTION element associated with this object, or null if none exists. |
String |
getHandle()
Returns something that can be used informally as a name for this element. |
String |
getID()
Returns the ID attribute value for this element, or null if none exists. |
String |
getName()
Returns the name attribute value for this element, or null if none exists. |
VOElement |
getParent()
Returns the parent element of this element as a VOElement. |
String |
getSystemId()
Returns any system ID associated with this node. |
String |
toString()
Returns the same value as getHandle() . |
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 |
public String getDescription()
getChildByName("DESCRIPTION")
.
public String getID()
public String getName()
public VOElement getParent()
public VOElement[] getChildren()
public VOElement[] getChildrenByName(String tagname)
tagname
- the element name required
public VOElement getChildByName(String tagname)
tagname
- the element name required
public String toString()
getHandle()
.
public String getHandle()
public String getSystemId()
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |