org.apache.tuscany.sca.databinding.xml
Interface XmlNode

All Known Implementing Classes:
BeanXMLStreamReaderImpl.BeanXmlNodeImpl, DOMXmlNodeImpl, SimpleXmlNodeImpl

public interface XmlNode


Nested Class Summary
static class XmlNode.Type
           
 
Method Summary
 java.util.List<XmlNode> attributes()
          Returns the attributes of the element as an List.
 java.util.Iterator<XmlNode> children()
          Returns the children of the receiver as an Iterator.
 javax.xml.namespace.QName getName()
          Return the QName of the element.
 XmlNode.Type getType()
          Return the type of the XML node
<T> T
getValue()
          Return the text value of the leaf element
 java.util.Map<java.lang.String,java.lang.String> namespaces()
          Returns a map of prefix to namespace URI
 

Method Detail

children

java.util.Iterator<XmlNode> children()
Returns the children of the receiver as an Iterator.


attributes

java.util.List<XmlNode> attributes()
Returns the attributes of the element as an List. Namespace declarations should be excluded.

Returns:

namespaces

java.util.Map<java.lang.String,java.lang.String> namespaces()
Returns a map of prefix to namespace URI

Returns:

getName

javax.xml.namespace.QName getName()
Return the QName of the element. If it's for a text node, the name is null.

Returns:

getValue

<T> T getValue()
Return the text value of the leaf element

Returns:

getType

XmlNode.Type getType()
Return the type of the XML node

Returns: