org.apache.tuscany.sca.databinding.xml
Class BeanXMLStreamReaderImpl.BeanXmlNodeImpl

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.xml.SimpleXmlNodeImpl
      extended by org.apache.tuscany.sca.databinding.xml.BeanXMLStreamReaderImpl.BeanXmlNodeImpl
All Implemented Interfaces:
XmlNode
Enclosing class:
BeanXMLStreamReaderImpl

public static class BeanXMLStreamReaderImpl.BeanXmlNodeImpl
extends SimpleXmlNodeImpl
implements XmlNode


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.tuscany.sca.databinding.xml.XmlNode
XmlNode.Type
 
Field Summary
 
Fields inherited from class org.apache.tuscany.sca.databinding.xml.SimpleXmlNodeImpl
name, type, value
 
Constructor Summary
BeanXMLStreamReaderImpl.BeanXmlNodeImpl(java.lang.Object bean)
           
BeanXMLStreamReaderImpl.BeanXmlNodeImpl(javax.xml.namespace.QName name, java.lang.Object bean)
           
 
Method Summary
 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.
static javax.xml.namespace.QName getName(java.lang.Class<?> cls)
           
 java.lang.String getValue()
          Return the text value of the leaf element
 
Methods inherited from class org.apache.tuscany.sca.databinding.xml.SimpleXmlNodeImpl
attributes, getType, namespaces, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.databinding.xml.XmlNode
attributes, getType, namespaces
 

Constructor Detail

BeanXMLStreamReaderImpl.BeanXmlNodeImpl

public BeanXMLStreamReaderImpl.BeanXmlNodeImpl(java.lang.Object bean)

BeanXMLStreamReaderImpl.BeanXmlNodeImpl

public BeanXMLStreamReaderImpl.BeanXmlNodeImpl(javax.xml.namespace.QName name,
                                               java.lang.Object bean)
Method Detail

children

public java.util.Iterator<XmlNode> children()
Description copied from interface: XmlNode
Returns the children of the receiver as an Iterator.

Specified by:
children in interface XmlNode
Overrides:
children in class SimpleXmlNodeImpl
See Also:
XmlNode.children()

getName

public javax.xml.namespace.QName getName()
Description copied from interface: XmlNode
Return the QName of the element. If it's for a text node, the name is null.

Specified by:
getName in interface XmlNode
Overrides:
getName in class SimpleXmlNodeImpl
Returns:
See Also:
XmlNode.getName()

getValue

public java.lang.String getValue()
Description copied from interface: XmlNode
Return the text value of the leaf element

Specified by:
getValue in interface XmlNode
Overrides:
getValue in class SimpleXmlNodeImpl
Returns:
See Also:
XmlNode.getValue()

getName

public static javax.xml.namespace.QName getName(java.lang.Class<?> cls)