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, selectSingleNodegetClassName, getEnvironment, getPrototype, isReadOnlySettable, makeScriptableFor, setEnvironment, setParentScopeclone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrNull, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, put, setClassNameapplyDescriptorToAttributeBitset, 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, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic 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 isSpecified()
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()
getDomNodeOrDie in class SimpleScriptableCopyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.