|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface extends the DOM Document model in several useful ways. It supports:
Fields inherited from class 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(Node node)
Changes the "owner document" of the given node, and all child and associated attribute nodes, to be this document. |
java.util.Locale |
chooseLocale(java.lang.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(java.lang.String id)
Returns the element whose ID is given by the parameter; or null if no such element is known. |
ElementFactory |
getElementFactory()
Returns the element factory to be used by this document. |
java.util.Locale |
getLocale()
Returns the locale to be used for diagnostic messages. |
java.lang.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(java.util.Locale locale)
Assigns the locale to be used for diagnostic messages. |
Methods inherited from interface org.w3c.dom.Document |
createAttribute,
createCDATASection,
createComment,
createDocumentFragment,
createElement,
createEntityReference,
createProcessingInstruction,
createTextNode,
getDoctype,
getDocumentElement,
getElementsByTagName,
getImplementation |
Methods inherited from interface com.sun.xml.tree.ElementFactory |
createElementEx,
createElementEx |
Methods inherited from interface com.sun.xml.tree.XmlReadable |
doneChild,
doneParse,
startParse |
Methods inherited from interface com.sun.xml.tree.XmlWritable |
writeChildrenXml,
writeXml |
Methods inherited from interface org.w3c.dom.Node |
appendChild,
cloneNode,
getAttributes,
getChildNodes,
getFirstChild,
getLastChild,
getNextSibling,
getNodeName,
getNodeType,
getNodeValue,
getOwnerDocument,
getParentNode,
getPreviousSibling,
hasChildNodes,
insertBefore,
removeChild,
replaceChild,
setNodeValue |
Method Detail |
public java.lang.String getSystemId()
public void setElementFactory(ElementFactory factory)
public ElementFactory getElementFactory()
public ElementEx getElementExById(java.lang.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 java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
chooseLocale(java.lang.String[])
public java.util.Locale chooseLocale(java.lang.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(Node node)
node
- the node whose "owner" will be changed.HIERARCHY_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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |