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, remove, removeChild, replaceChild, setNodeValue, setTextContentaddEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerPropclone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassName, setParentScopeapplyDescriptorToAttributeBitset, 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, sizepublic 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 Nodepublic Object getOwnerElement()
public Node getParentNode()
parentNode for the node that
contains the current node.getParentNode in class Nodenullpublic 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 Nodepublic Node getLastChild()
lastChild for the node that
contains the current node.getLastChild in class Nodepublic DomAttr getDomNodeOrDie() throws IllegalStateException
getDomNodeOrDie in class SimpleScriptableIllegalStateException - If the DOM node could not be found.public String getBaseURI()
Copyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.