com.meterware.httpunit.dom
Class DocumentImpl
java.lang.Object
org.mozilla.javascript.ScriptableObject
com.meterware.httpunit.javascript.ScriptingEngineImpl
com.meterware.httpunit.dom.AbstractDomComponent
com.meterware.httpunit.dom.NodeImpl
com.meterware.httpunit.dom.DocumentImpl
- All Implemented Interfaces:
- ScriptingEngine, ScriptingEventHandler, ScriptingHandler, java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, org.w3c.dom.Document, org.w3c.dom.Node
- Direct Known Subclasses:
- HTMLDocumentImpl
public class DocumentImpl
- extends NodeImpl
- implements org.w3c.dom.Document
- Author:
- Russell Gold
- See Also:
- Serialized Form
Fields inherited from class org.mozilla.javascript.ScriptableObject |
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
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 |
Fields inherited from interface org.mozilla.javascript.Scriptable |
NOT_FOUND |
Methods inherited from class com.meterware.httpunit.dom.NodeImpl |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildIfPermitted, getChildNodes, getElementsByTagName, getElementsByTagNames, getFeature, getFirstChild, getJavaPropertyName, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, initialize, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, preOrderIterator, preOrderIterator, preOrderIteratorAfterNode, preOrderIteratorAfterNode, removeChild, replaceChild, setPrefix, setTextContent, setUserData |
Methods inherited from class com.meterware.httpunit.javascript.ScriptingEngineImpl |
clearErrorMessages, discardDocumentWriteBuffer, doEvent, doEventScript, evaluateExpression, getDocumentWriteBuffer, getErrorMessages, handleEvent, handleScriptException, runScript, supportsScriptLanguage |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
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 |
getElementsByTagName |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserData |
Methods inherited from interface org.mozilla.javascript.Scriptable |
delete, delete, get, getDefaultValue, getIds, getParentScope, getPrototype, has, hasInstance, put, setParentScope, setPrototype |
DocumentImpl
public DocumentImpl()
initialize
protected void initialize()
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeName
in interface org.w3c.dom.Node
getNodeValue
public java.lang.String getNodeValue()
throws org.w3c.dom.DOMException
- Specified by:
getNodeValue
in interface org.w3c.dom.Node
- Throws:
org.w3c.dom.DOMException
setNodeValue
public void setNodeValue(java.lang.String nodeValue)
throws org.w3c.dom.DOMException
- Specified by:
setNodeValue
in interface org.w3c.dom.Node
- Throws:
org.w3c.dom.DOMException
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interface org.w3c.dom.Node
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interface org.w3c.dom.Node
- Overrides:
getOwnerDocument
in class NodeImpl
getDoctype
public org.w3c.dom.DocumentType getDoctype()
- Specified by:
getDoctype
in interface org.w3c.dom.Document
getImplementation
public org.w3c.dom.DOMImplementation getImplementation()
- Specified by:
getImplementation
in interface org.w3c.dom.Document
getDocumentElement
public org.w3c.dom.Element getDocumentElement()
- Specified by:
getDocumentElement
in interface org.w3c.dom.Document
createElement
public org.w3c.dom.Element createElement(java.lang.String tagName)
throws org.w3c.dom.DOMException
- Specified by:
createElement
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
createDocumentFragment
public org.w3c.dom.DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragment
in interface org.w3c.dom.Document
createTextNode
public org.w3c.dom.Text createTextNode(java.lang.String data)
- Specified by:
createTextNode
in interface org.w3c.dom.Document
createComment
public org.w3c.dom.Comment createComment(java.lang.String data)
- Specified by:
createComment
in interface org.w3c.dom.Document
createCDATASection
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
throws org.w3c.dom.DOMException
- Specified by:
createCDATASection
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
createProcessingInstruction
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws org.w3c.dom.DOMException
- Specified by:
createProcessingInstruction
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
createAttribute
public org.w3c.dom.Attr createAttribute(java.lang.String name)
throws org.w3c.dom.DOMException
- Specified by:
createAttribute
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
createEntityReference
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
throws org.w3c.dom.DOMException
- Specified by:
createEntityReference
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
importNode
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
boolean deep)
throws org.w3c.dom.DOMException
- Specified by:
importNode
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
getElementById
public org.w3c.dom.Element getElementById(java.lang.String elementId)
- Specified by:
getElementById
in interface org.w3c.dom.Document
createElementNS
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
- Specified by:
createElementNS
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
createAttributeNS
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
- Specified by:
createAttributeNS
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
getElementsByTagNameNS
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
- Specified by:
getElementsByTagNameNS
in interface org.w3c.dom.Document
getInputEncoding
public java.lang.String getInputEncoding()
- Specified by:
getInputEncoding
in interface org.w3c.dom.Document
getXmlEncoding
public java.lang.String getXmlEncoding()
- Specified by:
getXmlEncoding
in interface org.w3c.dom.Document
renameNode
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
- Specified by:
renameNode
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
getXmlStandalone
public boolean getXmlStandalone()
- Specified by:
getXmlStandalone
in interface org.w3c.dom.Document
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone)
throws org.w3c.dom.DOMException
- Specified by:
setXmlStandalone
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
getXmlVersion
public java.lang.String getXmlVersion()
- Specified by:
getXmlVersion
in interface org.w3c.dom.Document
setXmlVersion
public void setXmlVersion(java.lang.String xmlVersion)
throws org.w3c.dom.DOMException
- Specified by:
setXmlVersion
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
getStrictErrorChecking
public boolean getStrictErrorChecking()
- Specified by:
getStrictErrorChecking
in interface org.w3c.dom.Document
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
- Specified by:
setStrictErrorChecking
in interface org.w3c.dom.Document
getDocumentURI
public java.lang.String getDocumentURI()
- Specified by:
getDocumentURI
in interface org.w3c.dom.Document
setDocumentURI
public void setDocumentURI(java.lang.String documentURI)
- Specified by:
setDocumentURI
in interface org.w3c.dom.Document
adoptNode
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
throws org.w3c.dom.DOMException
- Specified by:
adoptNode
in interface org.w3c.dom.Document
- Throws:
org.w3c.dom.DOMException
getDomConfig
public org.w3c.dom.DOMConfiguration getDomConfig()
- Specified by:
getDomConfig
in interface org.w3c.dom.Document
normalizeDocument
public void normalizeDocument()
- Specified by:
normalizeDocument
in interface org.w3c.dom.Document
Copyright © 2011. All Rights Reserved.