com.gargoylesoftware.htmlunit.activex.javascript.msxml
Class XMLDOMDocumentType

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.activex.javascript.msxml.MSXMLScriptable
              extended by com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMNode
                  extended by com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMDocumentType
All Implemented Interfaces:
Serializable, Cloneable, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class XMLDOMDocumentType
extends XMLDOMNode

A JavaScript object for MSXML's (ActiveX) XMLDOMDocumentType.
Contains information associated with the document type declaration.

Version:
$Revision: 9024 $
Author:
Ahmed Ashour, Frank Danek
See Also:
MSDN documentation, Serialized Form

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
XMLDOMDocumentType()
          Creates an instance.
 
Method Summary
 Object getAttributes()
          Returns the list of attributes for this element.
 String getBaseName()
          Returns the base name for the name qualified with the namespace.
 DomDocumentType getDomNodeOrDie()
          Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.
 Object getEntities()
          Returns a list of the entities declared in the DOCTYPE declaration.
 String getName()
          Returns the name of the document type.
 String getNodeName()
          Returns the qualified name for attribute, document type, element, entity, or notation nodes.
 Object getNotations()
          Returns a list of the XMLDOMNotation objects present in the document type declaration.
 Object getParentNode()
          Returns the parent node.
 Object getText()
          Returns an empty string ("").
 Object getXml()
          Returns the XML representation of the node and all its descendants.
 void setNodeValue(String newValue)
          Attempting to set the value of document types generates an error.
 void setText(Object value)
          Attempting to set the text of document fragments generates an error.
 
Methods inherited from class com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMNode
appendChild, cloneNode, getChildNodes, getDataType, getDefinition, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, insertBeforeImpl, removeChild, replaceChild, selectNodes, selectSingleNode
 
Methods inherited from class com.gargoylesoftware.htmlunit.activex.javascript.msxml.MSXMLScriptable
getClassName, getEnvironment, getPrototype, makeScriptableFor, setEnvironment, setParentScope
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrNull, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, size
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDOMDocumentType

public XMLDOMDocumentType()
Creates an instance. JavaScript objects must have a default constructor.

Method Detail

getAttributes

public Object getAttributes()
Returns the list of attributes for this element.

Overrides:
getAttributes in class XMLDOMNode
Returns:
the list of attributes for this element

getBaseName

public String getBaseName()
Returns the base name for the name qualified with the namespace.

Overrides:
getBaseName in class XMLDOMNode
Returns:
the base name for the name qualified with the namespace

getEntities

public Object getEntities()
Returns a list of the entities declared in the DOCTYPE declaration.

Returns:
entities

getName

public String getName()
Returns the name of the document type.

Returns:
the name

getNodeName

public String getNodeName()
Returns the qualified name for attribute, document type, element, entity, or notation nodes. Returns a fixed string for all other node types.

Overrides:
getNodeName in class XMLDOMNode
Returns:
the qualified name

setNodeValue

public void setNodeValue(String newValue)
Attempting to set the value of document types generates an error.

Overrides:
setNodeValue in class XMLDOMNode
Parameters:
newValue - the new value to set

getNotations

public Object getNotations()
Returns a list of the XMLDOMNotation objects present in the document type declaration.

Returns:
notations

getParentNode

public Object getParentNode()
Returns the parent node.

Overrides:
getParentNode in class XMLDOMNode
Returns:
the parent node

getText

public Object getText()
Returns an empty string (""). Document types do not have associated text.

Overrides:
getText in class XMLDOMNode
Returns:
an empty string

setText

public void setText(Object value)
Attempting to set the text of document fragments generates an error.

Overrides:
setText in class XMLDOMNode
Parameters:
value - the new value for the contents of this node

getXml

public Object getXml()
Returns the XML representation of the node and all its descendants.

Overrides:
getXml in class XMLDOMNode
Returns:
the XML representation of the node and all its descendants

getDomNodeOrDie

public DomDocumentType getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.

Overrides:
getDomNodeOrDie in class SimpleScriptable
Returns:
the DOM node


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.