org.deegree.commons.tom.genericxml
Class GenericXMLElement

java.lang.Object
  extended by org.deegree.commons.tom.genericxml.GenericXMLElement
All Implemented Interfaces:
ElementNode, TypedObjectNode

public class GenericXMLElement
extends Object
implements ElementNode

TypedObjectNode that represents a generic XML element with associated XML schema type information.

Version:
$Revision: 30565 $, $Date: 2011-04-27 11:04:26 +0200 (Wed, 27 Apr 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
GenericXMLElement(QName name, org.apache.xerces.xs.XSElementDeclaration xsType, Map<QName,PrimitiveValue> attrs, List<TypedObjectNode> children)
           
 
Method Summary
 void addChild(TypedObjectNode node)
           
 Map<QName,PrimitiveValue> getAttributes()
          Returns the attributes of the node.
 List<TypedObjectNode> getChildren()
          Returns the children of the node.
 QName getName()
          Returns the element's name.
 PrimitiveValue getValue()
           
 org.apache.xerces.xs.XSElementDeclaration getXSType()
          Returns the XML schema declaration of the element.
 boolean isNilled()
           
 void setAttribute(QName name, PrimitiveValue value)
           
 void setChildren(List<TypedObjectNode> newChildren)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericXMLElement

public GenericXMLElement(QName name,
                         org.apache.xerces.xs.XSElementDeclaration xsType,
                         Map<QName,PrimitiveValue> attrs,
                         List<TypedObjectNode> children)
Method Detail

getName

public QName getName()
Description copied from interface: ElementNode
Returns the element's name.

Specified by:
getName in interface ElementNode
Returns:
element name, never null

getXSType

public org.apache.xerces.xs.XSElementDeclaration getXSType()
Description copied from interface: ElementNode
Returns the XML schema declaration of the element.

Specified by:
getXSType in interface ElementNode
Returns:
XML schema element declaration, can be null

isNilled

public boolean isNilled()

getAttributes

public Map<QName,PrimitiveValue> getAttributes()
Description copied from interface: ElementNode
Returns the attributes of the node.

Specified by:
getAttributes in interface ElementNode
Returns:
attributes of the node, never null

getChildren

public List<TypedObjectNode> getChildren()
Description copied from interface: ElementNode
Returns the children of the node.

Specified by:
getChildren in interface ElementNode
Returns:
children of the node, never null

getValue

public PrimitiveValue getValue()

setAttribute

public void setAttribute(QName name,
                         PrimitiveValue value)

addChild

public void addChild(TypedObjectNode node)

toString

public String toString()
Overrides:
toString in class Object

setChildren

public void setChildren(List<TypedObjectNode> newChildren)


Copyright © 2011. All Rights Reserved.