public class XMLDOMAttribute extends XMLDOMNode
Constructor and Description |
---|
XMLDOMAttribute()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
boolean |
isSpecified()
Indicates whether the attribute is explicitly specified or derived from a default value in
the document type definition (DTD) or schema.
|
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.
|
appendChild, cloneNode, getAttributes, getBaseName, getDataType, getDefinition, getJavaScriptNode, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, insertBeforeImpl, removeChild, replaceChild, selectNodes, selectSingleNode
getClassName, getEnvironment, getPrototype, isReadOnlySettable, makeScriptableFor, setEnvironment, setParentScope
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrNull, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, put, setClassName
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public XMLDOMNodeList getChildNodes()
getChildNodes
in class XMLDOMNode
public XMLDOMNode getFirstChild()
getFirstChild
in class XMLDOMNode
public XMLDOMNode getLastChild()
getLastChild
in class XMLDOMNode
public String getName()
public String getNodeValue()
getNodeValue
in class XMLDOMNode
public void setNodeValue(String value)
setNodeValue
in class XMLDOMNode
value
- the new text associated with the attributepublic Node getParentNode()
getParentNode
in class XMLDOMNode
null
public boolean isSpecified()
true
if this attribute has been explicitly specifiedpublic Object getText()
getText
in class XMLDOMNode
public void setText(Object value)
setText
in class XMLDOMNode
value
- the text content of the attributepublic String getValue()
public void setValue(String value)
value
- the new attribute valuepublic String getXml()
getXml
in class XMLDOMNode
public void detachFromParent()
public DomAttr getDomNodeOrDie()
getDomNodeOrDie
in class SimpleScriptable
Copyright © 2002–2021 Gargoyle Software Inc.. All rights reserved.