public class VOElement extends DelegatingElement
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.
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Modifier and Type | Method and Description | 
|---|---|
VOElement | 
getChildByName(String votagname)
Returns the first child element of this element which has a given
 name in the VOTable namespace. 
 | 
VOElement[] | 
getChildren()
Returns the child elements of this element. 
 | 
VOElement[] | 
getChildrenByName(String votagname)
Returns all the child elements of this element which have a given
 name in the VOTable namespace. 
 | 
String | 
getDescription()
Returns the text of a DESCRIPTION element associated with this object,
 or  
null if none exists. | 
NodeList | 
getElementsByVOTagName(String voTagName)
Returns a NodeList of all descendant Elements with a given
 unqualified tag name in the VOTable namespace, in the order
 in which they are encountered in a preorder traversal of this
 Element tree. 
 | 
int | 
getElementSequence()
Returns the number of elements with the same tag name as this one
 which were present in the document when this one was added to it. 
 | 
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. 
 | 
VOElement | 
getReferencedElement(String refAtt,
                    String votagname)
Returns an element from the same document whose ID-typed attribute
 matches the value of a given (reference) attribute of this element. 
 | 
String | 
getSystemId()
Returns any system ID associated with this node. 
 | 
String | 
getVOTagName()
Returns the name of this element in the VOTable namespace. 
 | 
String | 
toString()
Returns the same value as  
getHandle(). | 
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic String getDescription()
null if none exists.  The return value is a plain
 text string - any XML tags (XHTML is allowed in the VOTable1.1
 DESCRIPTION content model) are stripped out.
 If you want the full XML structure of the DESCRIPTION tag,
 use instead getChildByName("DESCRIPTION").public String getID()
ID attribute value for this element,
 or null if none exists.public String getName()
name attribute value for this element,
 or null if none exists.public VOElement getParent()
null will be returned.public VOElement[] getChildren()
public VOElement[] getChildrenByName(String votagname)
Note that since STIL v2.8, but not before, the namespacing of
 the argument to this method is influenced by the
 default Namespacing class.
votagname - the unqualified element name in the VOTable 
         namespace required (such as "TABLE")tagnamepublic VOElement getChildByName(String votagname)
null is returned.
 The element is returned as a VOElement or the appropriate specific
 VOElement subclass.
 Note that since STIL v2.8, but not before, the namespacing of
 the argument to this method is influenced by the
 default Namespacing class.
votagname - the unqualified element name in the VOTable
         namespace required (such as "TABLE")tagnamepublic String toString()
getHandle().public String getHandle()
public String getSystemId()
public String getVOTagName()
public int getElementSequence()
public VOElement getReferencedElement(String refAtt, String votagname)
refAtt - name of referencing attribute of this elementvotagname - the unqualified element name in the VOTable
         namespace required (such as "TABLE")public NodeList getElementsByVOTagName(String voTagName)
Element.getElementsByTagName(java.lang.String),
 but takes care of VOTable namespacing issues; 
 calling it with the argument "TABLE" will find all VOTable TABLE
 descendants.voTagName - unqualified element name in VOTable namespaceCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.