org.apache.cocoon.components.jxdom
Class DocumentAdapter.ElementAdapter
java.lang.Object
org.apache.cocoon.components.jxdom.DocumentAdapter.NodeAdapter
org.apache.cocoon.components.jxdom.DocumentAdapter.ElementAdapter
- All Implemented Interfaces:
- Element, Node
- Enclosing class:
- DocumentAdapter
- public class DocumentAdapter.ElementAdapter
- extends DocumentAdapter.NodeAdapter
- implements Element
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 |
Method Summary |
short |
compareDocumentPosition(Node other)
|
String |
getAttribute(String name)
|
Attr |
getAttributeNode(String name)
|
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
NamedNodeMap |
getAttributes()
|
String |
getBaseURI()
|
NodeList |
getChildNodes()
|
NodeList |
getElementsByTagName(String name)
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
|
Object |
getFeature(String feature,
String version)
|
Node |
getFirstChild()
|
Node |
getLastChild()
|
String |
getLocalName()
|
Node |
getNextSibling()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Node |
getParentNode()
|
Node |
getPreviousSibling()
|
TypeInfo |
getSchemaTypeInfo()
|
String |
getTagName()
|
String |
getTextContent()
|
Object |
getUserData(String key)
|
boolean |
hasAttribute(String name)
|
boolean |
hasAttributeNS(String namespaceURI,
String localName)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
boolean |
isDefaultNamespace(String namespaceURI)
|
boolean |
isEqualNode(Node arg)
|
boolean |
isSameNode(Node other)
|
String |
lookupNamespaceURI(String prefix)
|
String |
lookupPrefix(String namespaceURI)
|
void |
removeAttribute(String name)
|
Attr |
removeAttributeNode(Attr oldAttr)
|
void |
removeAttributeNS(String namespaceURI,
String localName)
|
void |
setAttribute(String name,
String value)
|
Attr |
setAttributeNode(Attr newAttr)
|
Attr |
setAttributeNodeNS(Attr newAttr)
|
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
|
void |
setIdAttribute(String name,
boolean isId)
|
void |
setIdAttributeNode(Attr idAttr,
boolean isId)
|
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
|
void |
setTextContent(String textContent)
|
Object |
setUserData(String key,
Object value,
UserDataHandler handler)
|
Object |
unwrap()
|
Methods inherited from class org.apache.cocoon.components.jxdom.DocumentAdapter.NodeAdapter |
appendChild, cloneNode, getNamespaceURI, getOwnerDocument, getPrefix, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
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, getNamespaceURI, getOwnerDocument, getPrefix, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
unwrap
public Object unwrap()
- Overrides:
unwrap
in class DocumentAdapter.NodeAdapter
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interface Node
- Specified by:
getNodeType
in class DocumentAdapter.NodeAdapter
getParentNode
public Node getParentNode()
- Specified by:
getParentNode
in interface Node
- Overrides:
getParentNode
in class DocumentAdapter.NodeAdapter
getTagName
public String getTagName()
- Specified by:
getTagName
in interface Element
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interface Node
- Specified by:
getNodeName
in class DocumentAdapter.NodeAdapter
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interface Node
- Overrides:
getLocalName
in class DocumentAdapter.NodeAdapter
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValue
in interface Node
- Overrides:
getNodeValue
in class DocumentAdapter.NodeAdapter
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes
in interface Node
- Overrides:
hasChildNodes
in class DocumentAdapter.NodeAdapter
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodes
in interface Node
- Overrides:
getChildNodes
in class DocumentAdapter.NodeAdapter
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild
in interface Node
- Overrides:
getFirstChild
in class DocumentAdapter.NodeAdapter
getLastChild
public Node getLastChild()
- Specified by:
getLastChild
in interface Node
- Overrides:
getLastChild
in class DocumentAdapter.NodeAdapter
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSibling
in interface Node
- Overrides:
getPreviousSibling
in class DocumentAdapter.NodeAdapter
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSibling
in interface Node
- Overrides:
getNextSibling
in class DocumentAdapter.NodeAdapter
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributes
in interface Node
- Overrides:
getAttributes
in class DocumentAdapter.NodeAdapter
getAttribute
public String getAttribute(String name)
- Specified by:
getAttribute
in interface Element
setAttribute
public void setAttribute(String name,
String value)
throws DOMException
- Specified by:
setAttribute
in interface Element
- Throws:
DOMException
removeAttribute
public void removeAttribute(String name)
throws DOMException
- Specified by:
removeAttribute
in interface Element
- Throws:
DOMException
getAttributeNode
public Attr getAttributeNode(String name)
- Specified by:
getAttributeNode
in interface Element
setAttributeNode
public Attr setAttributeNode(Attr newAttr)
throws DOMException
- Specified by:
setAttributeNode
in interface Element
- Throws:
DOMException
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr)
throws DOMException
- Specified by:
removeAttributeNode
in interface Element
- Throws:
DOMException
getElementsByTagName
public NodeList getElementsByTagName(String name)
- Specified by:
getElementsByTagName
in interface Element
getAttributeNS
public String getAttributeNS(String namespaceURI,
String localName)
- Specified by:
getAttributeNS
in interface Element
setAttributeNS
public void setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
throws DOMException
- Specified by:
setAttributeNS
in interface Element
- Throws:
DOMException
removeAttributeNS
public void removeAttributeNS(String namespaceURI,
String localName)
throws DOMException
- Specified by:
removeAttributeNS
in interface Element
- Throws:
DOMException
getAttributeNodeNS
public Attr getAttributeNodeNS(String namespaceURI,
String localName)
- Specified by:
getAttributeNodeNS
in interface Element
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr newAttr)
throws DOMException
- Specified by:
setAttributeNodeNS
in interface Element
- Throws:
DOMException
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
- Specified by:
getElementsByTagNameNS
in interface Element
hasAttribute
public boolean hasAttribute(String name)
- Specified by:
hasAttribute
in interface Element
hasAttributeNS
public boolean hasAttributeNS(String namespaceURI,
String localName)
- Specified by:
hasAttributeNS
in interface Element
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interface Node
- Overrides:
hasAttributes
in class DocumentAdapter.NodeAdapter
getUserData
public Object getUserData(String key)
- Since:
- DOM Level 3
setUserData
public Object setUserData(String key,
Object value,
UserDataHandler handler)
- Since:
- DOM Level 3
getFeature
public Object getFeature(String feature,
String version)
- Since:
- DOM Level 3
compareDocumentPosition
public short compareDocumentPosition(Node other)
throws DOMException
- Throws:
DOMException
- Since:
- DOM Level 3
getBaseURI
public String getBaseURI()
- Since:
- DOM Level 3
getTextContent
public String getTextContent()
throws DOMException
- Throws:
DOMException
- Since:
- DOM Level 3
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Since:
- DOM Level 3
isEqualNode
public boolean isEqualNode(Node arg)
- Since:
- DOM Level 3
isSameNode
public boolean isSameNode(Node other)
- Since:
- DOM Level 3
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Since:
- DOM Level 3
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Since:
- DOM Level 3
setTextContent
public void setTextContent(String textContent)
throws DOMException
- Throws:
DOMException
- Since:
- DOM Level 3
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Since:
- DOM Level 3
setIdAttribute
public void setIdAttribute(String name,
boolean isId)
throws DOMException
- Throws:
DOMException
- Since:
- DOM Level 3
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr,
boolean isId)
throws DOMException
- Throws:
DOMException
- Since:
- DOM Level 3
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
throws DOMException
- Throws:
DOMException
- Since:
- DOM Level 3
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.