public class Attr extends Node
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.
|
Object |
getBaseName()
Returns the base name of this element.
|
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, attachEvent, cloneNode, compareDocumentPosition, contains, detachEvent, getAttributes, getChildNodes, getJavaScriptNode, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParent, getParentElement, getPrefix, getPreviousSibling, getTextContent, getXml, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValue, setTextContentaddEventListener, clearEventListenersContainer, dispatchEvent, executeEvent, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerPropclone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setDomNode, setHtmlElement, 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()
public boolean getExpando()
public String getName()
public String getNodeValue()
getNodeValue in class Nodepublic Object getOwnerElement()
public Node getParentNode()
getParentNode in class Nodenullpublic boolean getSpecified()
public String getValue()
public void setValue(String value)
value - the new value of this attributepublic Node getFirstChild()
getFirstChild in class Nodepublic Node getLastChild()
getLastChild in class Nodepublic DomAttr getDomNodeOrDie() throws IllegalStateException
getDomNodeOrDie in class SimpleScriptableIllegalStateException - If the DOM node could not be found.public Object getBaseName()
getBaseName in class Nodepublic String getBaseURI()
Copyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.