|
|||||||||
| 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.DelegatingDocument
uk.ac.starlink.votable.VODocument
public class VODocument
Document implementation which holds a VOTable-specific DOM.
The elements in it are all instances of 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.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
VODocument()
Constructs a new VODocument. |
|
VODocument(String systemId,
boolean strict)
Constructs a new VODocument with a specified System ID. |
|
| Method Summary | |
|---|---|
protected DelegatingAttr |
createDelegatingAttr(Attr baseNode)
Creates a new node in this document that delegates to an object of class Attr
in the base model. |
protected DelegatingElement |
createDelegatingElement(Element node)
Creates a new node in this document that delegates to an object of class Element
in the base model. |
DelegatingNode |
getDelegator(Node base)
Returns the node in this document which delegates to (is based on) a given node in the base document. |
Element |
getElementById(String elementId)
|
int |
getElementCount(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. |
String |
getSystemId()
Returns the system ID associated with this document. |
String |
getVOTagName(Element el)
Returns the unqualified tag name for an element in the VOTable namespace, taking care of namespacing issues. |
void |
setElementId(Element el,
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. |
| Methods inherited from class uk.ac.starlink.votable.dom.DelegatingNode |
|---|
appendChild, 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, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, 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, setUserData |
| Constructor Detail |
|---|
public VODocument(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()
| Method Detail |
|---|
public String getSystemId()
public StoragePolicy getStoragePolicy()
public void setStoragePolicy(StoragePolicy policy)
StoragePolicy.PREFER_MEMORY.
policy - new policy
public void setElementId(Element el,
String id)
getElementById(java.lang.String)
method.
public Element getElementById(String elementId)
getElementById in interface DocumentgetElementById in class DelegatingDocumentpublic DelegatingNode getDelegator(Node base)
DelegatingDocument
getDelegator in class DelegatingDocumentbase - node in the base document
public int getElementCount(String voTagName)
voTagName - VOTable-domain tag name
protected DelegatingElement createDelegatingElement(Element node)
DelegatingDocumentElement
in the base model. This may be overridden to create specialised
node types.
createDelegatingElement in class DelegatingDocumentnode - delegate node
protected DelegatingAttr createDelegatingAttr(Attr baseNode)
DelegatingDocumentAttr
in the base model. This may be overridden to create specialised
node types.
createDelegatingAttr in class DelegatingDocumentbaseNode - delegate node
public String getVOTagName(Element el)
el - element
|
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 | ||||||||