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

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.XMLDOMProcessingInstruction
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 final class XMLDOMProcessingInstruction
extends XMLDOMNode

A JavaScript object for MSXML's (ActiveX) XMLDOMProcessingInstruction.
Represents a processing instruction, which XML defines to keep processor-specific information in the text of the document.

Version:
$Revision: 9017 $
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
XMLDOMProcessingInstruction()
          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.
 String getData()
          Returns the content of the processing instruction, excluding the target.
 DomProcessingInstruction getDomNodeOrDie()
          Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.
 String getTarget()
          Returns the target for the processing instruction.
 void setData(String data)
          Sets the content of the processing instruction, excluding the target.
 void setNodeValue(String newValue)
          Attempting to set the value of document fragments generates an error.
 void setText(Object newText)
          Sets the text contained in the node.
 
Methods inherited from class com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMNode
appendChild, cloneNode, getChildNodes, getDataType, getDefinition, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getText, getXml, 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

XMLDOMProcessingInstruction

public XMLDOMProcessingInstruction()
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

getData

public String getData()
Returns the content of the processing instruction, excluding the target.

Returns:
the content of the processing instruction, excluding the target

setData

public void setData(String data)
Sets the content of the processing instruction, excluding the target.

Parameters:
data - the content of the processing instruction, excluding the target

setNodeValue

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

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

getTarget

public String getTarget()
Returns the target for the processing instruction.

Returns:
the target for the processing instruction

setText

public void setText(Object newText)
Sets the text contained in the node.

Overrides:
setText in class XMLDOMNode
Parameters:
newText - the text contained in the node

getDomNodeOrDie

public DomProcessingInstruction 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.