|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.databinding.xml.SimpleXmlNodeImpl
public class SimpleXmlNodeImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.tuscany.sca.databinding.xml.XmlNode |
---|
XmlNode.Type |
Field Summary | |
---|---|
protected javax.xml.namespace.QName |
name
|
protected XmlNode.Type |
type
|
protected java.lang.Object |
value
|
Constructor Summary | |
---|---|
SimpleXmlNodeImpl(javax.xml.namespace.QName name,
java.lang.Object value)
|
|
SimpleXmlNodeImpl(javax.xml.namespace.QName name,
java.lang.Object value,
XmlNode.Type 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 |
java.lang.String |
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 |
void |
setType(XmlNode.Type type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XmlNode.Type type
protected javax.xml.namespace.QName name
protected java.lang.Object value
Constructor Detail |
---|
public SimpleXmlNodeImpl(javax.xml.namespace.QName name, java.lang.Object value)
public SimpleXmlNodeImpl(javax.xml.namespace.QName name, java.lang.Object value, XmlNode.Type type)
Method Detail |
---|
public java.util.List<XmlNode> attributes()
XmlNode
List
. Namespace declarations
should be excluded.
attributes
in interface XmlNode
XmlNode.attributes()
public java.util.Iterator<XmlNode> children()
XmlNode
Iterator
.
children
in interface XmlNode
XmlNode.children()
public javax.xml.namespace.QName getName()
XmlNode
getName
in interface XmlNode
XmlNode.getName()
public java.lang.String getValue()
XmlNode
getValue
in interface XmlNode
XmlNode.getValue()
public java.util.Map<java.lang.String,java.lang.String> namespaces()
XmlNode
namespaces
in interface XmlNode
XmlNode.namespaces()
public XmlNode.Type getType()
XmlNode
getType
in interface XmlNode
public void setType(XmlNode.Type type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |