|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.activex.javascript.msxml.MSXMLScriptable
com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMNode
com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMAttribute
public class XMLDOMAttribute
A JavaScript object for MSXML's (ActiveX) XMLDOMAttribute.
Represents an attribute of the IXMLDOMElement. Valid and default values for the attribute are defined in a
document type definition (DTD) or schema.
| 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 | |
|---|---|
XMLDOMAttribute()
Creates an instance. |
|
| Method Summary | |
|---|---|
void |
detachFromParent()
Detaches this attribute from the parent HTML element after caching the attribute value. |
XMLDOMNodeList |
getChildNodes()
Returns a node list containing the child nodes. |
DomAttr |
getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found. |
XMLDOMNode |
getFirstChild()
Returns the first child of the attribute. |
XMLDOMNode |
getLastChild()
Returns the last child attribute. |
String |
getName()
Returns the attribute name. |
String |
getNodeValue()
Returns the text associated with the attribute. |
Node |
getParentNode()
Returns the parent node. |
boolean |
getSpecified()
Indicates whether the attribute is explicitly specified or derived from a default value in the document type definition (DTD) or schema. |
Object |
getText()
Returns a string representing the value of the attribute with entities expanded. |
String |
getValue()
Returns the attribute value. |
String |
getXml()
Returns the XML representation of the node and all its descendants. |
void |
setNodeValue(String value)
Sets the text associated with the attribute. |
void |
setText(Object value)
Sets the text content of the attribute. |
void |
setValue(String value)
Sets the attribute value. |
| Methods inherited from class com.gargoylesoftware.htmlunit.activex.javascript.msxml.XMLDOMNode |
|---|
appendChild, cloneNode, getAttributes, getBaseName, getDataType, getDefinition, getJavaScriptNode, getNamespaceURI, getNextSibling, getNodeName, getNodeType, 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 |
|---|
public XMLDOMAttribute()
| Method Detail |
|---|
public XMLDOMNodeList getChildNodes()
getChildNodes in class XMLDOMNodepublic XMLDOMNode getFirstChild()
getFirstChild in class XMLDOMNodepublic XMLDOMNode getLastChild()
getLastChild in class XMLDOMNodepublic String getName()
public String getNodeValue()
getNodeValue in class XMLDOMNodepublic void setNodeValue(String value)
setNodeValue in class XMLDOMNodevalue - the new text associated with the attributepublic Node getParentNode()
getParentNode in class XMLDOMNodenullpublic boolean getSpecified()
true if this attribute has been explicitly specifiedpublic Object getText()
getText in class XMLDOMNodepublic void setText(Object value)
setText in class XMLDOMNodevalue - the text content of the attributepublic String getValue()
public void setValue(String value)
value - the new attribute valuepublic String getXml()
getXml in class XMLDOMNodepublic void detachFromParent()
public DomAttr getDomNodeOrDie()
throws IllegalStateException
getDomNodeOrDie in class SimpleScriptableIllegalStateException - If the DOM node could not be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||