|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.impl.xs.opti.DefaultNode
org.apache.xerces.impl.xs.opti.NodeImpl
org.apache.xerces.impl.xs.opti.DefaultElement
org.apache.xerces.impl.xs.opti.ElementImpl
| Field Summary |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
ElementImpl(int line,
int column)
|
|
ElementImpl(java.lang.String prefix,
java.lang.String localpart,
java.lang.String rawname,
java.lang.String uri,
int line,
int column)
|
|
| Method Summary | |
java.lang.String |
getAttribute(java.lang.String name)
Retrieves an attribute value by name. |
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
Retrieves an attribute node by name. |
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
Retrieves an Attr node by local name and namespace URI. |
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Retrieves an attribute value by local name and namespace URI. |
org.w3c.dom.NamedNodeMap |
getAttributes()
A NamedNodeMap containing the attributes of this node (if
it is an Element) or null otherwise. |
int |
getColumnNumber()
Returns the column number. |
org.w3c.dom.Node |
getFirstChild()
The first child of this node. |
org.w3c.dom.Node |
getLastChild()
The last child of this node. |
int |
getLineNumber()
Returns the line number. |
org.w3c.dom.Node |
getNextSibling()
The node immediately following this node. |
org.w3c.dom.Document |
getOwnerDocument()
The Document object associated with this node. |
org.w3c.dom.Node |
getParentNode()
The parent of this node. |
org.w3c.dom.Node |
getPreviousSibling()
The node immediately preceding this node. |
java.lang.String |
getTagName()
The name of the element. |
boolean |
hasAttribute(java.lang.String name)
Returns true when an attribute with a given name is
specified on this element or has a default value, false
otherwise. |
boolean |
hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Returns true when an attribute with a given local name and
namespace URI is specified on this element or has a default value,
false otherwise. |
boolean |
hasAttributes()
Returns whether this node (if it is an element) has any attributes. |
boolean |
hasChildNodes()
Returns whether this node has any children. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Adds a new attribute. |
| Methods inherited from class org.apache.xerces.impl.xs.opti.DefaultElement |
getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, removeAttribute, removeAttributeNode, removeAttributeNS, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from class org.apache.xerces.impl.xs.opti.NodeImpl |
getLocalName, getNamespaceURI, getNodeName, getNodeType, getPrefix, getReadOnly, setReadOnly |
| Methods inherited from class org.apache.xerces.impl.xs.opti.DefaultNode |
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getNodeValue, getTextContent, getUserData, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getChildNodes, getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getPrefix, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Constructor Detail |
public ElementImpl(int line,
int column)
public ElementImpl(java.lang.String prefix,
java.lang.String localpart,
java.lang.String rawname,
java.lang.String uri,
int line,
int column)
| Method Detail |
public org.w3c.dom.Document getOwnerDocument()
org.w3c.dom.NodeDocument object associated with this node. This is
also the Document object used to create new nodes. When
this node is a Document or a DocumentType
which is not used with any Document yet, this is
null.
getOwnerDocument in interface org.w3c.dom.NodegetOwnerDocument in class DefaultNodepublic org.w3c.dom.Node getParentNode()
org.w3c.dom.NodeAttr,
Document, DocumentFragment,
Entity, and Notation may have a parent.
However, if a node has just been created and not yet added to the
tree, or if it has been removed from the tree, this is
null.
getParentNode in interface org.w3c.dom.NodegetParentNode in class DefaultNodepublic boolean hasChildNodes()
org.w3c.dom.Node
hasChildNodes in interface org.w3c.dom.NodehasChildNodes in class DefaultNodepublic org.w3c.dom.Node getFirstChild()
org.w3c.dom.Nodenull.
getFirstChild in interface org.w3c.dom.NodegetFirstChild in class DefaultNodepublic org.w3c.dom.Node getLastChild()
org.w3c.dom.Nodenull.
getLastChild in interface org.w3c.dom.NodegetLastChild in class DefaultNodepublic org.w3c.dom.Node getPreviousSibling()
org.w3c.dom.Nodenull.
getPreviousSibling in interface org.w3c.dom.NodegetPreviousSibling in class DefaultNodepublic org.w3c.dom.Node getNextSibling()
org.w3c.dom.Nodenull.
getNextSibling in interface org.w3c.dom.NodegetNextSibling in class DefaultNodepublic org.w3c.dom.NamedNodeMap getAttributes()
org.w3c.dom.NodeNamedNodeMap containing the attributes of this node (if
it is an Element) or null otherwise.
getAttributes in interface org.w3c.dom.NodegetAttributes in class DefaultNodepublic boolean hasAttributes()
org.w3c.dom.Node
hasAttributes in interface org.w3c.dom.NodehasAttributes in class DefaultNodepublic java.lang.String getTagName()
org.w3c.dom.Element<elementExample id="demo"> ... </elementExample> ,
tagName has
the value "elementExample". Note that this is
case-preserving in XML, as are all of the operations of the DOM. The
HTML DOM returns the tagName of an HTML element in the
canonical uppercase form, regardless of the case in the source HTML
document.
getTagName in interface org.w3c.dom.ElementgetTagName in class DefaultElementpublic java.lang.String getAttribute(java.lang.String name)
org.w3c.dom.Element
getAttribute in interface org.w3c.dom.ElementgetAttribute in class DefaultElementpublic org.w3c.dom.Attr getAttributeNode(java.lang.String name)
org.w3c.dom.ElementgetAttributeNodeNS method.
getAttributeNode in interface org.w3c.dom.ElementgetAttributeNode in class DefaultElement
public java.lang.String getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
org.w3c.dom.Element
getAttributeNS in interface org.w3c.dom.ElementgetAttributeNS in class DefaultElement
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
org.w3c.dom.ElementAttr node by local name and namespace URI.
getAttributeNodeNS in interface org.w3c.dom.ElementgetAttributeNodeNS in class DefaultElementpublic boolean hasAttribute(java.lang.String name)
org.w3c.dom.Elementtrue when an attribute with a given name is
specified on this element or has a default value, false
otherwise.
hasAttribute in interface org.w3c.dom.ElementhasAttribute in class DefaultElement
public boolean hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
org.w3c.dom.Elementtrue when an attribute with a given local name and
namespace URI is specified on this element or has a default value,
false otherwise.
hasAttributeNS in interface org.w3c.dom.ElementhasAttributeNS in class DefaultElement
public void setAttribute(java.lang.String name,
java.lang.String value)
org.w3c.dom.ElementAttr node plus any
Text and EntityReference nodes, build the
appropriate subtree, and use setAttributeNode to assign
it as the value of an attribute.
setAttributeNS method.
setAttribute in interface org.w3c.dom.ElementsetAttribute in class DefaultElementpublic int getLineNumber()
public int getColumnNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||