public class Attr extends Node
Attr
.ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
Attr()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
detachFromParent()
Detaches this attribute from the parent HTML element after caching the attribute value.
|
String |
getBaseURI()
Returns the Base URI as a string.
|
DomAttr |
getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw
an exception if one cannot be found.
|
boolean |
getExpando()
Returns
true if the attribute is an custom property. |
Node |
getFirstChild()
Gets the JavaScript property
firstChild for the node that
contains the current node. |
boolean |
getIsId()
Returns
true if this attribute is an ID. |
Node |
getLastChild()
Gets the JavaScript property
lastChild for the node that
contains the current node. |
String |
getName()
Returns the name of the attribute.
|
String |
getNodeValue()
Returns the value of this attribute.
|
Object |
getOwnerElement()
Returns the owner element.
|
Node |
getParentNode()
Gets the JavaScript property
parentNode for the node that
contains the current node. |
boolean |
getSpecified()
Returns
true if this attribute has been specified. |
String |
getValue()
Returns the value of this attribute.
|
void |
setValue(String value)
Sets the value of this attribute.
|
appendChild, asJavaScriptException, cloneNode, compareDocumentPosition, contains, detachEvent, getAttributes, getChildNodes, getJavaScriptNode, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParent, getParentElement, getPrefix, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValue, setTextContent
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerProp
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, setClassName, setParentScope
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, getExternalArrayData, getExternalArrayLength, 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, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void detachFromParent()
public boolean getIsId()
true
if this attribute is an ID.true
if this attribute is an IDpublic boolean getExpando()
true
if the attribute is an custom property.true
if the attribute is an custom propertypublic String getName()
public String getNodeValue()
getNodeValue
in class Node
public Object getOwnerElement()
public Node getParentNode()
parentNode
for the node that
contains the current node.getParentNode
in class Node
null
public boolean getSpecified()
true
if this attribute has been specified.true
if this attribute has been specifiedpublic String getValue()
public void setValue(String value)
value
- the new value of this attributepublic Node getFirstChild()
firstChild
for the node that
contains the current node.getFirstChild
in class Node
public Node getLastChild()
lastChild
for the node that
contains the current node.getLastChild
in class Node
public DomAttr getDomNodeOrDie() throws IllegalStateException
getDomNodeOrDie
in class SimpleScriptable
IllegalStateException
- If the DOM node could not be found.public String getBaseURI()
Copyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.