public class VODocument extends DelegatingDocument
VOElement,
or of VOElement subclasses according to their element names,
that is any element with a tagname of "TABLE" in this DOM will be
an instance of the class 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| Constructor and Description |
|---|
VODocument()
Constructs a new VODocument.
|
VODocument(java.lang.String systemId,
boolean strict)
Constructs a new VODocument with a specified System ID.
|
| Modifier and Type | Method and Description |
|---|---|
protected DelegatingAttr |
createDelegatingAttr(org.w3c.dom.Attr baseNode)
Creates a new node in this document that delegates to an object
of class
Attr
in the base model. |
protected DelegatingElement |
createDelegatingElement(org.w3c.dom.Element node)
Creates a new node in this document that delegates to an object
of class
Element
in the base model. |
DelegatingNode |
getDelegator(org.w3c.dom.Node base)
Returns the node in this document which delegates to (is based on)
a given node in the base document.
|
org.w3c.dom.Element |
getElementById(java.lang.String elementId) |
int |
getElementCount(java.lang.String voTagName)
Returns the number of elements of a given name
which have so far been added to this document.
|
StoragePolicy |
getStoragePolicy()
Returns the storage policy used for storing bulk table data found
as elements in the DOM into a usable form.
|
java.lang.String |
getSystemId()
Returns the system ID associated with this document.
|
java.lang.String |
getVOTagName(org.w3c.dom.Element el)
Returns the unqualified tag name for an element in the VOTable namespace,
taking care of namespacing issues.
|
void |
setElementId(org.w3c.dom.Element el,
java.lang.String id)
Stores an element as the referent of a given ID string.
|
void |
setStoragePolicy(StoragePolicy policy)
Sets the storage policy used for storing bulk table data found
as elements in the DOM into a usable form.
|
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDelegatingAttr, createDelegatingCDATASection, createDelegatingCharacterData, createDelegatingComment, createDelegatingDocumentFragment, createDelegatingDocumentType, createDelegatingEntity, createDelegatingEntityReference, createDelegatingNamedNodeMap, createDelegatingNodeList, createDelegatingNotation, createDelegatingProcessingInstruction, createDelegatingSimpleNode, createDelegatingText, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getBaseDocument, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementsByTagName, getElementsByTagNameNS, getImplementation, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersionappendChild, 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, toString, 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 VODocument(java.lang.String systemId,
boolean strict)
systemId - system ID for the VOTable document represented by
this DOM (sometimes used for resolving URLs) - may be nullstrict - whether to enforce the VOTable standard strictly
or in some cases do what is probably meant
(see VOElementFactory.setStrict(boolean))public VODocument()
public java.lang.String getSystemId()
public StoragePolicy getStoragePolicy()
public void setStoragePolicy(StoragePolicy policy)
StoragePolicy.PREFER_MEMORY.policy - new policypublic void setElementId(org.w3c.dom.Element el,
java.lang.String id)
getElementById(java.lang.String)
method.public org.w3c.dom.Element getElementById(java.lang.String elementId)
getElementById in interface org.w3c.dom.DocumentgetElementById in class DelegatingDocumentpublic DelegatingNode getDelegator(org.w3c.dom.Node base)
DelegatingDocumentgetDelegator in class DelegatingDocumentbase - node in the base documentpublic int getElementCount(java.lang.String voTagName)
voTagName - VOTable-domain tag nameprotected DelegatingElement createDelegatingElement(org.w3c.dom.Element node)
DelegatingDocumentElement
in the base model. This may be overridden to create specialised
node types.createDelegatingElement in class DelegatingDocumentnode - delegate nodebaseNodeprotected DelegatingAttr createDelegatingAttr(org.w3c.dom.Attr baseNode)
DelegatingDocumentAttr
in the base model. This may be overridden to create specialised
node types.createDelegatingAttr in class DelegatingDocumentbaseNode - delegate nodebaseNodepublic java.lang.String getVOTagName(org.w3c.dom.Element el)
el - element