|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface extends the DOM Document model in several useful ways. It supports:
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 | |
void |
changeNodeOwner(org.w3c.dom.Node node)
Changes the "owner document" of the given node, and all child and associated attribute nodes, to be this document. |
Locale |
chooseLocale(String[] languages)
Chooses a client locale to use for diagnostics, using the first language specified in the list that is supported by this DOM implementation. |
ElementEx |
getElementExById(String id)
Deprecated. As of DOM level 2, replaced by the method Document.getElementById |
ElementFactory |
getElementFactory()
Returns the element factory to be used by this document. |
Locale |
getLocale()
Returns the locale to be used for diagnostic messages. |
String |
getSystemId()
Returns the system ID (a URI) associated with the document, or null if this is unknown. |
void |
setElementFactory(ElementFactory factory)
Assigns the element factory to be used by this document. |
void |
setLocale(Locale locale)
Assigns the locale to be used for diagnostic messages. |
Methods inherited from interface org.w3c.dom.Document |
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode |
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 |
Methods inherited from interface org.apache.crimson.tree.XmlWritable |
writeChildrenXml, writeXml |
Methods inherited from interface org.apache.crimson.tree.ElementFactory |
createElementEx, createElementEx |
Method Detail |
public String getSystemId()
public void setElementFactory(ElementFactory factory)
public ElementFactory getElementFactory()
public ElementEx getElementExById(String id)
Note that DOM itself provides no way to identify which element attributes are declared with the "ID" attribute type. This feature relies on interfaces which may not be publicly exposed, such as XML processors telling a DOM builder about those attributes.
id
- The value of the ID attribute which will be matched
by any element which is returned.public Locale getLocale()
public void setLocale(Locale locale)
chooseLocale(java.lang.String[])
public Locale chooseLocale(String[] languages)
languages
- Array of language specifiers, ordered with the most
preferable one at the front. For example, "en-ca" then "fr-ca",
followed by "zh_CN". Both RFC 1766 and Java styles are supported.
MessageCatalog
public void changeNodeOwner(org.w3c.dom.Node node)
node
- the node whose "owner" will be changed.
DOMException
- WRONG_DOCUMENT_ERROR when attempting
to change the owner for some other DOM implementationHIERARCHY_REQUEST_ERROR when the node is a document, document type, entity, or notation; or when it is an attribute associated with an element whose owner is not being (recursively) changed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |