|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.castor.xmlctf.xmldiff.xml.nodes.XMLNode
org.castor.xmlctf.xmldiff.xml.nodes.ParentNode
org.castor.xmlctf.xmldiff.xml.nodes.Element
public class Element
A representation of an Element XML node.
| Field Summary |
|---|
| Fields inherited from class org.castor.xmlctf.xmldiff.xml.nodes.XMLNode |
|---|
ATTRIBUTE, ELEMENT, PROCESSING_INSTRUCTION, ROOT, TEXT |
| Constructor Summary | |
|---|---|
Element(java.lang.String namespace,
java.lang.String localName)
Creates a new Element. |
|
| Method Summary | |
|---|---|
void |
addAttribute(Attribute attr)
Adds the given Attribute to this Element. |
void |
addNamespace(Namespace namespace)
Adds the given Namespace to this Element. |
java.lang.String |
getAttribute(java.lang.String uri,
java.lang.String localName)
Returns the value of the named attribute, or null if the node has no such attribute. |
java.util.Iterator |
getAttributeIterator()
Returns an Iterator over the List of Attributes. |
Location |
getLocation()
Returns the location of this Element in the document. |
java.lang.String |
getNamespacePrefix(java.lang.String uri)
Returns the namespace prefix associated with this namespace URI, as defined in the context of this node. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returns the namespace URI associated with this namespace prefix, as defined in the context of this node. |
void |
setLocation(Location location)
Sets the location of this Element in the document. |
| Methods inherited from class org.castor.xmlctf.xmldiff.xml.nodes.ParentNode |
|---|
addChild, getChildIterator, getStringValue, hasChildNodes |
| Methods inherited from class org.castor.xmlctf.xmldiff.xml.nodes.XMLNode |
|---|
getLocalName, getNamespaceURI, getNodeLocation, getNodeType, getParentNode, getRootNode, getXPath, setNamespace, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Element(java.lang.String namespace,
java.lang.String localName)
namespace - the namespace URI for this node. (May be null.)localName - the localname of this node. (Cannot be null.)| Method Detail |
|---|
public java.util.Iterator getAttributeIterator()
public java.lang.String getAttribute(java.lang.String uri,
java.lang.String localName)
uri - The attribute's namespace URI, or nulllocalName - The attribute's local name
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in class XMLNodeprefix - The namespace prefix
public java.lang.String getNamespacePrefix(java.lang.String uri)
uri - The namespace URI
public void addAttribute(Attribute attr)
attr - the Attribute to addpublic void addNamespace(Namespace namespace)
namespace - the Namespace to addpublic void setLocation(Location location)
location - the location of this Element in the document.public Location getLocation()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||