|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractDocument
public abstract class AbstractDocument
This class implements the Document
interface.
Nested Class Summary | |
---|---|
protected class |
AbstractDocument.DocumentConfiguration
DOMConfiguration for this document. |
protected class |
AbstractDocument.DocumentError
DOMError implementation. |
protected class |
AbstractDocument.IdSoftRef
|
protected class |
AbstractDocument.XPathExpr
A compiled XPath expression. |
protected class |
AbstractDocument.XPathNodeNSResolver
An XPathNSResolver that uses Node.lookupNamespaceURI. |
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode |
---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
Field Summary | |
---|---|
protected DocumentEventSupport |
documentEventSupport
The DocumentEventSupport. |
protected java.lang.String |
documentURI
The document URI. |
protected AbstractDocument.DocumentConfiguration |
domConfig
The DOMConfiguration object for this document. |
protected java.util.Map |
elementsById
The elementsById lists. |
protected java.util.WeakHashMap |
elementsByTagNames
The ElementsByTagName lists. |
protected java.util.WeakHashMap |
elementsByTagNamesNS
The ElementsByTagNameNS lists. |
protected boolean |
eventsEnabled
Whether the event dispatching must be done. |
protected org.w3c.dom.DOMImplementation |
implementation
The DOM implementation. |
protected java.lang.String |
inputEncoding
Input encoding of this document. |
protected LocalizableSupport |
localizableSupport
The localizable support for the error messages. |
protected static java.lang.String |
RESOURCES
The error messages bundle class name. |
protected boolean |
strictErrorChecking
Whether strict error checking is in force. |
protected TraversalSupport |
traversalSupport
The traversal support. |
protected XBLManager |
xblManager
The XBL manager for this document. |
protected java.lang.String |
xmlEncoding
XML encoding of this document. |
protected boolean |
xmlStandalone
Whether this document is standalone. |
protected java.lang.String |
xmlVersion
XML version of this document. |
Fields inherited from class org.apache.batik.dom.AbstractParentNode |
---|
childNodes |
Fields inherited from class org.apache.batik.dom.AbstractNode |
---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
Fields inherited from interface org.w3c.dom.Node |
---|
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 Summary | |
---|---|
protected |
AbstractDocument()
Creates a new document. |
|
AbstractDocument(org.w3c.dom.DocumentType dt,
org.w3c.dom.DOMImplementation impl)
Creates a new document. |
Method Summary | |
---|---|
void |
addIdEntry(org.w3c.dom.Element e,
java.lang.String id)
|
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node n)
DOM: Implements Document.adoptNode(Node) . |
protected void |
adoptNode1(AbstractNode n)
Helper function for adoptNode(Node) . |
boolean |
canDispatch(java.lang.String ns,
java.lang.String eventType)
DOM: Implements DocumentEvent.canDispatch(String,String) . |
protected boolean |
checkChars(java.lang.String s)
Checks that the characters in the given string are all valid content characters. |
protected void |
checkChildType(org.w3c.dom.Node n,
boolean replace)
Checks the validity of a node to be inserted. |
protected boolean |
checkName(java.lang.String s)
Checks that the given string is a valid XML name. |
org.w3c.dom.Node |
cloneNode(boolean deep)
DOM: Implements Node.cloneNode(boolean) . |
protected org.w3c.dom.Node |
copyInto(org.w3c.dom.Node n)
Copy the fields of the current node into the given node. |
protected org.w3c.dom.DOMError |
createDOMError(java.lang.String type,
short severity,
java.lang.String key,
java.lang.Object[] args,
org.w3c.dom.Node related,
java.lang.Exception e)
Creates a DOMError object with the given parameters. |
Event |
createEvent(java.lang.String eventType)
DOM: Implements DocumentEvent.createEvent(String) . |
org.w3c.dom.xpath.XPathExpression |
createExpression(java.lang.String expression,
org.w3c.dom.xpath.XPathNSResolver resolver)
DOM: Implements XPathEvaluator.createExpression(String,XPathNSResolver) . |
org.w3c.dom.traversal.NodeIterator |
createNodeIterator(org.w3c.dom.Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean entityReferenceExpansion)
DOM: Implements DocumentTraversal.createNodeIterator(Node,int,NodeFilter,boolean) . |
org.w3c.dom.xpath.XPathNSResolver |
createNSResolver(org.w3c.dom.Node n)
DOM: Implements XPathEvaluator.createNSResolver(Node) . |
org.w3c.dom.traversal.TreeWalker |
createTreeWalker(org.w3c.dom.Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean entityReferenceExpansion)
DOM: Implements DocumentTraversal.createTreeWalker(Node,int,NodeFilter,boolean) . |
org.w3c.dom.xpath.XPathException |
createXPathException(short type,
java.lang.String key,
java.lang.Object[] args)
Creates an exception with the appropriate error message. |
protected org.w3c.dom.Node |
deepCopyInto(org.w3c.dom.Node n)
Deeply copy the fields of the current node into the given node. |
protected org.w3c.dom.Node |
deepExport(org.w3c.dom.Node n,
org.w3c.dom.Document d)
Deeply exports this node to the given document. |
void |
detachNodeIterator(org.w3c.dom.traversal.NodeIterator it)
Detaches the given node iterator from this document. |
java.lang.Object |
evaluate(java.lang.String expression,
org.w3c.dom.Node contextNode,
org.w3c.dom.xpath.XPathNSResolver resolver,
short type,
java.lang.Object result)
DOM: Implements XPathEvaluator.evaluate(String,Node,XPathNSResolver,short,Object) . |
protected org.w3c.dom.Node |
export(org.w3c.dom.Node n,
org.w3c.dom.Document d)
Exports this node to the given document. |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Implements Localizable.formatMessage(String,Object[]) . |
org.w3c.dom.Element |
getChildElementById(org.w3c.dom.Node requestor,
java.lang.String id)
Finds an element that is in the same document fragment as 'requestor' that has 'id'. |
protected AbstractDocument |
getCurrentDocument()
Returns the current document. |
org.w3c.dom.DocumentType |
getDoctype()
DOM: Implements Document.getDoctype() . |
org.w3c.dom.Element |
getDocumentElement()
DOM: Implements Document.getDocumentElement() . |
java.lang.String |
getDocumentURI()
DOM: Implements Document.getDocumentURI() . |
org.w3c.dom.DOMConfiguration |
getDomConfig()
DOM: Implements Document.getDomConfig() . |
org.w3c.dom.Element |
getElementById(java.lang.String id)
DOM: Implements Document.getElementById(String) . |
AbstractParentNode.ElementsByTagName |
getElementsByTagName(org.w3c.dom.Node n,
java.lang.String ln)
Returns an ElementsByTagName object from the cache, if any. |
AbstractParentNode.ElementsByTagNameNS |
getElementsByTagNameNS(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String ln)
Returns an ElementsByTagNameNS object from the cache, if any. |
boolean |
getEventsEnabled()
Tests whether the event dispatching must be done. |
org.w3c.dom.DOMImplementation |
getImplementation()
DOM: Implements Document.getImplementation() . |
java.lang.String |
getInputEncoding()
DOM: Implements Document.getInputEncoding() . |
java.util.Locale |
getLocale()
Implements Localizable.getLocale() . |
java.lang.String |
getNodeName()
DOM: Implements Node.getNodeName() . |
short |
getNodeType()
DOM: Implements Node.getNodeType() . |
protected org.w3c.dom.Node |
getRoot(org.w3c.dom.Node n)
|
boolean |
getStrictErrorChecking()
DOM: Implements Document.getStrictErrorChecking() . |
org.w3c.dom.Element |
getXblBoundElement()
Get the bound element whose shadow tree this current node resides in. |
org.w3c.dom.NodeList |
getXblChildNodes()
Get the list of child nodes of this node in the fully flattened tree. |
org.w3c.dom.NodeList |
getXblDefinitions()
Get the xbl:definition elements currently binding this element. |
org.w3c.dom.Node |
getXblFirstChild()
Get the first child node of this node in the fully flattened tree. |
org.w3c.dom.Element |
getXblFirstElementChild()
Get the first element child of this node in the fully flattened tree. |
org.w3c.dom.Node |
getXblLastChild()
Get the last child node of this node in the fully flattened tree. |
org.w3c.dom.Element |
getXblLastElementChild()
Get the last element child of this node in the fully flattened tree. |
XBLManager |
getXBLManager()
Returns the XBLManager used for this document. |
org.w3c.dom.Element |
getXblNextElementSibling()
Get the first element that follows the current node in the xblParentNode's xblChildNodes list. |
org.w3c.dom.Node |
getXblNextSibling()
Get the node which directly follows the current node in the xblParentNode's xblChildNodes list. |
org.w3c.dom.Node |
getXblParentNode()
Get the parent of this node in the fully flattened tree. |
org.w3c.dom.Element |
getXblPreviousElementSibling()
Get the first element that precedes the current node in the xblParentNode's xblChildNodes list. |
org.w3c.dom.Node |
getXblPreviousSibling()
Get the node which directly precedes the current node in the xblParentNode's xblChildNodes list. |
org.w3c.dom.NodeList |
getXblScopedChildNodes()
Get the list of child nodes of this node in the fully flattened tree that are within the same shadow scope. |
org.w3c.dom.Element |
getXblShadowTree()
Get the shadow tree of this node. |
java.lang.String |
getXmlEncoding()
DOM: Implements Document.getXmlEncoding() . |
boolean |
getXmlStandalone()
DOM: Implements Document.getXmlStandalone() . |
java.lang.String |
getXmlVersion()
DOM: Implements Document.getXmlVersion() . |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
DOM: Implements Document.importNode(Node,boolean) . |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep,
boolean trimId)
Imports the given node into this document. |
abstract boolean |
isId(org.w3c.dom.Attr node)
Returns whether the given attribute node is an ID attribute. |
void |
nodeToBeRemoved(org.w3c.dom.Node node)
Notifies this document that a node will be removed. |
void |
normalizeDocument()
DOM: Implements Document.normalizeDocument() . |
protected boolean |
normalizeDocument(org.w3c.dom.Element e,
boolean cdataSections,
boolean comments,
boolean elementContentWhitepace,
boolean namespaceDeclarations,
boolean namespaces,
boolean splitCdataSections,
org.w3c.dom.DOMErrorHandler errorHandler)
Helper function for normalizeDocument() . |
void |
putElementsByTagName(org.w3c.dom.Node n,
java.lang.String ln,
AbstractParentNode.ElementsByTagName l)
Puts an ElementsByTagName object in the cache. |
void |
putElementsByTagNameNS(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String ln,
AbstractParentNode.ElementsByTagNameNS l)
Puts an ElementsByTagNameNS object in the cache. |
void |
removeIdEntry(org.w3c.dom.Element e,
java.lang.String id)
Remove the mapping for element to id |
org.w3c.dom.Node |
renameNode(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String qn)
DOM: Implements Document.renameNode(Node,String,String) . |
void |
setDoctype(org.w3c.dom.DocumentType dt)
Sets the document type node. |
void |
setDocumentInputEncoding(java.lang.String ie)
Sets the input encoding that was used when the document was being parsed. |
void |
setDocumentURI(java.lang.String uri)
DOM: Implements Document.setDocumentURI(String) . |
void |
setDocumentXmlEncoding(java.lang.String xe)
Sets the XML encoding that was found in the XML prolog. |
void |
setEventsEnabled(boolean b)
Sets the eventsEnabled property. |
void |
setLocale(java.util.Locale l)
Implements Localizable.setLocale(Locale) . |
void |
setStrictErrorChecking(boolean b)
DOM: Implements Document.setStrictErrorChecking(boolean) . |
void |
setTextContent(java.lang.String s)
DOM: Implements Node.setTextContent(String) . |
void |
setXBLManager(XBLManager m)
Sets the XBLManager used for this document. |
void |
setXmlStandalone(boolean b)
DOM: Implements Document.setXmlStandalone(boolean) . |
void |
setXmlVersion(java.lang.String v)
DOM: Implements Document.setXmlVersion(String) . |
protected boolean |
splitCdata(org.w3c.dom.Element e,
org.w3c.dom.Node n,
org.w3c.dom.DOMErrorHandler errorHandler)
Splits the given CDATA node if required. |
void |
updateIdEntry(org.w3c.dom.Element e,
java.lang.String oldId,
java.lang.String newId)
|
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.Document |
---|
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getElementsByTagName, getElementsByTagNameNS |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setUserData |
Methods inherited from interface org.apache.batik.dom.ExtendedNode |
---|
isReadonly, setReadonly |
Field Detail |
---|
protected static final java.lang.String RESOURCES
protected transient LocalizableSupport localizableSupport
protected transient org.w3c.dom.DOMImplementation implementation
protected transient TraversalSupport traversalSupport
protected transient DocumentEventSupport documentEventSupport
protected transient boolean eventsEnabled
protected transient java.util.WeakHashMap elementsByTagNames
protected transient java.util.WeakHashMap elementsByTagNamesNS
protected java.lang.String inputEncoding
protected java.lang.String xmlEncoding
protected java.lang.String xmlVersion
protected boolean xmlStandalone
protected java.lang.String documentURI
protected boolean strictErrorChecking
protected AbstractDocument.DocumentConfiguration domConfig
protected transient XBLManager xblManager
protected transient java.util.Map elementsById
Constructor Detail |
---|
protected AbstractDocument()
public AbstractDocument(org.w3c.dom.DocumentType dt, org.w3c.dom.DOMImplementation impl)
Method Detail |
---|
public void setDocumentInputEncoding(java.lang.String ie)
public void setDocumentXmlEncoding(java.lang.String xe)
public void setLocale(java.util.Locale l)
Localizable.setLocale(Locale)
.
setLocale
in interface Localizable
l
- The locale to set.public java.util.Locale getLocale()
Localizable.getLocale()
.
getLocale
in interface Localizable
public java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args) throws java.util.MissingResourceException
Localizable.formatMessage(String,Object[])
.
formatMessage
in interface Localizable
key
- The key used to retreive the message from the resource
bundle.args
- The objects that compose the message.
java.util.MissingResourceException
- if the key is not in the bundle.public boolean getEventsEnabled()
public void setEventsEnabled(boolean b)
public java.lang.String getNodeName()
Node.getNodeName()
.
getNodeName
in interface org.w3c.dom.Node
public short getNodeType()
Node.getNodeType()
.
getNodeType
in interface org.w3c.dom.Node
Node.DOCUMENT_NODE
public org.w3c.dom.DocumentType getDoctype()
Document.getDoctype()
.
getDoctype
in interface org.w3c.dom.Document
public void setDoctype(org.w3c.dom.DocumentType dt)
public org.w3c.dom.DOMImplementation getImplementation()
Document.getImplementation()
.
getImplementation
in interface org.w3c.dom.Document
implementation
public org.w3c.dom.Element getDocumentElement()
Document.getDocumentElement()
.
getDocumentElement
in interface org.w3c.dom.Document
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMException
Document.importNode(Node,boolean)
.
importNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep, boolean trimId)
deep
is set to true.
It will not mark ID attributes as IDs if trimId
is set to
true. This is used primarily for the shadow trees of the 'use' elements
so they don't clutter the hash table.
importedNode
- The node to import into this document.deep
- Whether to perform a deep importation.trimId
- Whether to make all cloned attributes not be ID attributes.public org.w3c.dom.Node cloneNode(boolean deep)
Node.cloneNode(boolean)
.
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class AbstractNode
public abstract boolean isId(org.w3c.dom.Attr node)
public org.w3c.dom.Element getElementById(java.lang.String id)
Document.getElementById(String)
.
getElementById
in interface org.w3c.dom.Document
public org.w3c.dom.Element getChildElementById(org.w3c.dom.Node requestor, java.lang.String id)
protected org.w3c.dom.Node getRoot(org.w3c.dom.Node n)
public void removeIdEntry(org.w3c.dom.Element e, java.lang.String id)
public void addIdEntry(org.w3c.dom.Element e, java.lang.String id)
public void updateIdEntry(org.w3c.dom.Element e, java.lang.String oldId, java.lang.String newId)
public AbstractParentNode.ElementsByTagName getElementsByTagName(org.w3c.dom.Node n, java.lang.String ln)
public void putElementsByTagName(org.w3c.dom.Node n, java.lang.String ln, AbstractParentNode.ElementsByTagName l)
public AbstractParentNode.ElementsByTagNameNS getElementsByTagNameNS(org.w3c.dom.Node n, java.lang.String ns, java.lang.String ln)
public void putElementsByTagNameNS(org.w3c.dom.Node n, java.lang.String ns, java.lang.String ln, AbstractParentNode.ElementsByTagNameNS l)
public Event createEvent(java.lang.String eventType) throws org.w3c.dom.DOMException
DocumentEvent.createEvent(String)
.
createEvent
in interface DocumentEvent
eventType
- The eventType
parameter specifies the
name of the DOM Events interface to be supported by the created
event object, e.g. "Event"
, "MouseEvent"
,
"MutationEvent"
and so on. If the Event
is to be dispatched via the EventTarget.dispatchEvent()
method the appropriate event init method must be called after
creation in order to initialize the Event
's values.
As an example, a user wishing to synthesize some kind of
UIEvent
would invoke
DocumentEvent.createEvent("UIEvent")
. The
UIEvent.initUIEventNS()
method could then be called on
the newly created UIEvent
object to set the specific
type of user interface event to be dispatched, DOMActivate for
example, and set its context information, e.g.
UIEvent.detail
in this example.
Note: For backward compatibility reason, "UIEvents",
"MouseEvents", "MutationEvents", and "HTMLEvents" feature names are
valid values for the parameter eventType
and represent
respectively the interfaces "UIEvent", "MouseEvent",
"MutationEvent", and "Event".
org.w3c.dom.DOMException
- NOT_SUPPORTED_ERR: Raised if the implementation does not support the
Event
interface requested.public boolean canDispatch(java.lang.String ns, java.lang.String eventType)
DocumentEvent.canDispatch(String,String)
.
canDispatch
in interface DocumentEvent
ns
- Specifies the Event.namespaceURI
of
the event.eventType
- Specifies the Event.type
of the event.
true
if the implementation can generate and
dispatch this event type, false
otherwise.public org.w3c.dom.traversal.NodeIterator createNodeIterator(org.w3c.dom.Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean entityReferenceExpansion) throws org.w3c.dom.DOMException
DocumentTraversal.createNodeIterator(Node,int,NodeFilter,boolean)
.
createNodeIterator
in interface org.w3c.dom.traversal.DocumentTraversal
org.w3c.dom.DOMException
public org.w3c.dom.traversal.TreeWalker createTreeWalker(org.w3c.dom.Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean entityReferenceExpansion) throws org.w3c.dom.DOMException
DocumentTraversal.createTreeWalker(Node,int,NodeFilter,boolean)
.
createTreeWalker
in interface org.w3c.dom.traversal.DocumentTraversal
org.w3c.dom.DOMException
public void detachNodeIterator(org.w3c.dom.traversal.NodeIterator it)
public void nodeToBeRemoved(org.w3c.dom.Node node)
nodeToBeRemoved
in class AbstractParentNode
protected AbstractDocument getCurrentDocument()
getCurrentDocument
in class AbstractNode
protected org.w3c.dom.Node export(org.w3c.dom.Node n, org.w3c.dom.Document d)
n
- The clone node.d
- The destination document.protected org.w3c.dom.Node deepExport(org.w3c.dom.Node n, org.w3c.dom.Document d)
n
- The clone node.d
- The destination document.protected org.w3c.dom.Node copyInto(org.w3c.dom.Node n)
copyInto
in class AbstractNode
n
- a node of the type of this.protected org.w3c.dom.Node deepCopyInto(org.w3c.dom.Node n)
deepCopyInto
in class AbstractParentNode
n
- a node of the type of this.protected void checkChildType(org.w3c.dom.Node n, boolean replace)
checkChildType
in class AbstractNode
public java.lang.String getInputEncoding()
Document.getInputEncoding()
.
getInputEncoding
in interface org.w3c.dom.Document
public java.lang.String getXmlEncoding()
Document.getXmlEncoding()
.
getXmlEncoding
in interface org.w3c.dom.Document
public boolean getXmlStandalone()
Document.getXmlStandalone()
.
getXmlStandalone
in interface org.w3c.dom.Document
public void setXmlStandalone(boolean b) throws org.w3c.dom.DOMException
Document.setXmlStandalone(boolean)
.
setXmlStandalone
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public java.lang.String getXmlVersion()
Document.getXmlVersion()
.
getXmlVersion
in interface org.w3c.dom.Document
public void setXmlVersion(java.lang.String v) throws org.w3c.dom.DOMException
Document.setXmlVersion(String)
.
setXmlVersion
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public boolean getStrictErrorChecking()
Document.getStrictErrorChecking()
.
getStrictErrorChecking
in interface org.w3c.dom.Document
public void setStrictErrorChecking(boolean b)
Document.setStrictErrorChecking(boolean)
.
setStrictErrorChecking
in interface org.w3c.dom.Document
public java.lang.String getDocumentURI()
Document.getDocumentURI()
.
getDocumentURI
in interface org.w3c.dom.Document
public void setDocumentURI(java.lang.String uri)
Document.setDocumentURI(String)
.
setDocumentURI
in interface org.w3c.dom.Document
public org.w3c.dom.DOMConfiguration getDomConfig()
Document.getDomConfig()
.
getDomConfig
in interface org.w3c.dom.Document
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node n) throws org.w3c.dom.DOMException
Document.adoptNode(Node)
.
adoptNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
protected void adoptNode1(AbstractNode n)
adoptNode(Node)
.
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String ns, java.lang.String qn)
Document.renameNode(Node,String,String)
.
renameNode
in interface org.w3c.dom.Document
public void normalizeDocument()
Document.normalizeDocument()
.
XXX Does not handle the 'entities' parameter yet.
normalizeDocument
in interface org.w3c.dom.Document
protected boolean normalizeDocument(org.w3c.dom.Element e, boolean cdataSections, boolean comments, boolean elementContentWhitepace, boolean namespaceDeclarations, boolean namespaces, boolean splitCdataSections, org.w3c.dom.DOMErrorHandler errorHandler)
normalizeDocument()
.
protected boolean splitCdata(org.w3c.dom.Element e, org.w3c.dom.Node n, org.w3c.dom.DOMErrorHandler errorHandler)
protected boolean checkChars(java.lang.String s)
protected boolean checkName(java.lang.String s)
protected org.w3c.dom.DOMError createDOMError(java.lang.String type, short severity, java.lang.String key, java.lang.Object[] args, org.w3c.dom.Node related, java.lang.Exception e)
public void setTextContent(java.lang.String s) throws org.w3c.dom.DOMException
Node.setTextContent(String)
.
setTextContent
in interface org.w3c.dom.Node
setTextContent
in class AbstractNode
org.w3c.dom.DOMException
public void setXBLManager(XBLManager m)
public XBLManager getXBLManager()
public org.w3c.dom.xpath.XPathExpression createExpression(java.lang.String expression, org.w3c.dom.xpath.XPathNSResolver resolver) throws org.w3c.dom.DOMException, org.w3c.dom.xpath.XPathException
XPathEvaluator.createExpression(String,XPathNSResolver)
.
createExpression
in interface org.w3c.dom.xpath.XPathEvaluator
org.w3c.dom.DOMException
org.w3c.dom.xpath.XPathException
public org.w3c.dom.xpath.XPathNSResolver createNSResolver(org.w3c.dom.Node n)
XPathEvaluator.createNSResolver(Node)
.
createNSResolver
in interface org.w3c.dom.xpath.XPathEvaluator
public java.lang.Object evaluate(java.lang.String expression, org.w3c.dom.Node contextNode, org.w3c.dom.xpath.XPathNSResolver resolver, short type, java.lang.Object result) throws org.w3c.dom.xpath.XPathException, org.w3c.dom.DOMException
XPathEvaluator.evaluate(String,Node,XPathNSResolver,short,Object)
.
evaluate
in interface org.w3c.dom.xpath.XPathEvaluator
org.w3c.dom.xpath.XPathException
org.w3c.dom.DOMException
public org.w3c.dom.xpath.XPathException createXPathException(short type, java.lang.String key, java.lang.Object[] args)
public org.w3c.dom.Node getXblParentNode()
getXblParentNode
in interface NodeXBL
getXblParentNode
in class AbstractNode
public org.w3c.dom.NodeList getXblChildNodes()
getXblChildNodes
in interface NodeXBL
getXblChildNodes
in class AbstractNode
public org.w3c.dom.NodeList getXblScopedChildNodes()
getXblScopedChildNodes
in interface NodeXBL
getXblScopedChildNodes
in class AbstractNode
public org.w3c.dom.Node getXblFirstChild()
getXblFirstChild
in interface NodeXBL
getXblFirstChild
in class AbstractNode
public org.w3c.dom.Node getXblLastChild()
getXblLastChild
in interface NodeXBL
getXblLastChild
in class AbstractNode
public org.w3c.dom.Node getXblPreviousSibling()
getXblPreviousSibling
in interface NodeXBL
getXblPreviousSibling
in class AbstractNode
public org.w3c.dom.Node getXblNextSibling()
getXblNextSibling
in interface NodeXBL
getXblNextSibling
in class AbstractNode
public org.w3c.dom.Element getXblFirstElementChild()
getXblFirstElementChild
in interface NodeXBL
getXblFirstElementChild
in class AbstractNode
public org.w3c.dom.Element getXblLastElementChild()
getXblLastElementChild
in interface NodeXBL
getXblLastElementChild
in class AbstractNode
public org.w3c.dom.Element getXblPreviousElementSibling()
getXblPreviousElementSibling
in interface NodeXBL
getXblPreviousElementSibling
in class AbstractNode
public org.w3c.dom.Element getXblNextElementSibling()
getXblNextElementSibling
in interface NodeXBL
getXblNextElementSibling
in class AbstractNode
public org.w3c.dom.Element getXblBoundElement()
getXblBoundElement
in interface NodeXBL
getXblBoundElement
in class AbstractNode
public org.w3c.dom.Element getXblShadowTree()
getXblShadowTree
in interface NodeXBL
getXblShadowTree
in class AbstractNode
public org.w3c.dom.NodeList getXblDefinitions()
getXblDefinitions
in interface NodeXBL
getXblDefinitions
in class AbstractNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |