Class AttrImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.dom.nodeimpl.event.EventTargetImpl
org.loboevolution.html.dom.nodeimpl.NodeImpl
org.loboevolution.html.dom.nodeimpl.AttrImpl
- All Implemented Interfaces:
Cloneable
,EventTarget
,ModelNode
,Attr
,Node
,ScriptableDelegate
AttrImpl class.
-
Field Summary
Fields inherited from class org.loboevolution.html.dom.nodeimpl.NodeImpl
document, nodeList, notificationsSuspended, parentNode, uiNode
Fields inherited from interface org.loboevolution.html.node.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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionshort
compareDocumentPosition
(Node other) compareDocumentPosition.getLocalName.getName()
getName.Returns the next sibling.Returns a string appropriate for the type of node.int
Returns the type of node.getNodeValue.Returns the previous sibling.getCurrentNode.getTextContent.boolean
Returns true if element has attributes, and false otherwise.insertBefore
(Node newChild, Node refChild) insertBefore.boolean
isId()
isId.removeChild
(Node oldChild) removeChild.replaceChild
(Node newChild, Node oldChild) replaceChild.void
setNodeValue
(String nodeValue) setNodeValue.void
setOwnerElement
(Node ownerElement) setOwnerElement.toString()
Methods inherited from class org.loboevolution.html.dom.nodeimpl.NodeImpl
appendChild, appendInnerHTMLImpl, appendInnerTextImpl, clone, cloneNode, cloneNode, contains, createRenderState, findUINode, forgetRenderState, getATTRIBUTE_NODE, getAttributes, getBaseURI, getCDATA_SECTION_NODE, getChildIndex, getChildNodes, getChildren, getCOMMENT_NODE, getDescendents, getDOCUMENT_FRAGMENT_NODE, getDOCUMENT_NODE, getDOCUMENT_POSITION_CONTAINED_BY, getDOCUMENT_POSITION_CONTAINS, getDOCUMENT_POSITION_DISCONNECTED, getDOCUMENT_POSITION_FOLLOWING, getDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, getDOCUMENT_POSITION_PRECEDING, getDOCUMENT_TYPE_NODE, getDocumentItem, getDocumentNode, getDocumentURL, getELEMENT_NODE, getENTITY_NODE, getENTITY_REFERENCE_NODE, getFeature, getFirstChild, getFirstChildByFilter, getFullURL, getHtmlRendererConfig, getHtmlRendererContext, getLastChild, getNamespaceURI, getNextElementSibling, getNodeList, getNONE, getNOTATION_NODE, getOwnerDocument, getParentElement, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousElementSibling, getPROCESSING_INSTRUCTION_NODE, getRenderState, getRootNode, getTEXT_NODE, getUINode, getUserAgentContext, getUserData, hasChildNodes, htmlEncodeChildText, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChildAt, removeChildrenImpl, removeTableChildren, replaceAdjacentTextNodes, setDocumentItem, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUINode, setUserData, visit, visitImpl, warn, warn
Methods inherited from class org.loboevolution.html.dom.nodeimpl.event.EventTargetImpl
addEventListener, addEventListener, dispatchEvent, dispatchEvent, getFunction, removeEventListener, removeEventListener
Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.loboevolution.html.node.Attr
getNamespaceURI, getOwnerElement, getPrefix, getValue, isSpecified, setValue
Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
Methods inherited from interface org.loboevolution.html.node.Node
appendChild, cloneNode, cloneNode, contains, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getOwnerDocument, getParentElement, getParentNode, getRootNode, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, setOwnerDocument, setPrefix, setTextContent, setUserData
-
Constructor Details
-
AttrImpl
public AttrImpl()
-
-
Method Details
-
getLocalName
getLocalName.
- Specified by:
getLocalName
in interfaceAttr
- Specified by:
getLocalName
in interfaceNode
- Specified by:
getLocalName
in classNodeImpl
- Returns:
- a
String
object.
-
getName
getName.
-
getNodeName
Returns a string appropriate for the type of node.- Specified by:
getNodeName
in interfaceNode
- Specified by:
getNodeName
in classNodeImpl
- Returns:
- a
String
object.
-
getNodeType
public int getNodeType()Returns the type of node.- Specified by:
getNodeType
in interfaceNode
- Specified by:
getNodeType
in classNodeImpl
- Returns:
- a
Integer
object.
-
getNodeValue
getNodeValue.
- Specified by:
getNodeValue
in interfaceNode
- Specified by:
getNodeValue
in classNodeImpl
- Returns:
- a
String
object.
-
getTextContent
getTextContent.
Gets the text content of this node and its descendents.- Specified by:
getTextContent
in interfaceNode
- Overrides:
getTextContent
in classNodeImpl
- Returns:
- a
String
object.
-
getSchemaTypeInfo
getCurrentNode.
- Specified by:
getSchemaTypeInfo
in interfaceAttr
- Returns:
- a
TypeInfo
object.
-
isId
public boolean isId()isId.
-
setNodeValue
setNodeValue.
- Specified by:
setNodeValue
in interfaceNode
- Specified by:
setNodeValue
in classNodeImpl
- Parameters:
nodeValue
- aString
object.
-
insertBefore
Description copied from class:NodeImpl
insertBefore.
- Specified by:
insertBefore
in interfaceNode
- Overrides:
insertBefore
in classNodeImpl
- Parameters:
newChild
- aNode
object.refChild
- aNode
object.- Returns:
- a
Node
object.
-
removeChild
Description copied from class:NodeImpl
removeChild.
- Specified by:
removeChild
in interfaceNode
- Overrides:
removeChild
in classNodeImpl
- Parameters:
oldChild
- aNode
object.- Returns:
- a
Node
object.
-
replaceChild
Description copied from class:NodeImpl
replaceChild.
- Specified by:
replaceChild
in interfaceNode
- Overrides:
replaceChild
in classNodeImpl
- Parameters:
newChild
- aNode
object.oldChild
- aNode
object.- Returns:
- a
Node
object.
-
getNextSibling
Description copied from class:NodeImpl
Returns the next sibling.- Specified by:
getNextSibling
in interfaceNode
- Overrides:
getNextSibling
in classNodeImpl
- Returns:
- a
Node
object.
-
getPreviousSibling
Description copied from class:NodeImpl
Returns the previous sibling.- Specified by:
getPreviousSibling
in interfaceNode
- Overrides:
getPreviousSibling
in classNodeImpl
- Returns:
- a
Node
object.
-
compareDocumentPosition
Description copied from class:NodeImpl
compareDocumentPosition.
- Specified by:
compareDocumentPosition
in interfaceNode
- Overrides:
compareDocumentPosition
in classNodeImpl
- Parameters:
other
- aNode
object.- Returns:
- a short.
-
hasAttributes
public boolean hasAttributes()Description copied from interface:Node
Returns true if element has attributes, and false otherwise.- Specified by:
hasAttributes
in interfaceNode
- Returns:
- a boolean.
-
setOwnerElement
Description copied from interface:Attr
setOwnerElement.
- Specified by:
setOwnerElement
in interfaceAttr
- Parameters:
ownerElement
- aNode
object.
-
toString
Description copied from class:NodeImpl
-