com.gargoylesoftware.htmlunit.javascript.host
Class DOMImplementation

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.DOMImplementation
All Implemented Interfaces:
Serializable, Cloneable, Map, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class DOMImplementation
extends SimpleScriptable

A JavaScript object for DOMImplementation.

Version:
$Revision: 5864 $
Author:
Ahmed Ashour
See Also:
W3C Dom Level 1, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
DOMImplementation()
           
 
Method Summary
 XMLDocument jsxFunction_createDocument(String namespaceURI, String qualifiedName, Object doctype)
          Creates an XMLDocument.
 boolean jsxFunction_hasFeature(String feature, String version)
          Test if the DOM implementation implements a specific feature.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DOMImplementation

public DOMImplementation()
Method Detail

jsxFunction_hasFeature

public boolean jsxFunction_hasFeature(String feature,
                                      String version)
Test if the DOM implementation implements a specific feature.

Parameters:
feature - the name of the feature to test (case-insensitive)
version - the version number of the feature to test
Returns:
true if the feature is implemented in the specified version, false otherwise

jsxFunction_createDocument

public XMLDocument jsxFunction_createDocument(String namespaceURI,
                                              String qualifiedName,
                                              Object doctype)
Creates an XMLDocument.

Parameters:
namespaceURI - the URI that identifies an XML namespace
qualifiedName - the qualified name of the document to instantiate
doctype - the document types of the document
Returns:
the newly created XMLDocument


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.