eu.beesoft.gaia.util
Class XmlElement

java.lang.Object
  extended by eu.beesoft.gaia.util.XmlElement

public final class XmlElement
extends java.lang.Object

Instances of this class represent XML element properties (tag, attributes, ...). They are used by XmlReader.


Method Summary
 java.util.Map<java.lang.String,java.lang.String> getElementAttributes()
          Returns the map of the element attributes.
 XmlElement getParentElement()
          Returns the parent element of this element.
 java.lang.String getTag()
          Returns the tag of the XML element
 java.lang.Object getUserObject()
          Returns the user object set in this element (or null, if no object was set).
 void setUserObject(java.lang.Object object)
          Sets the user object for this element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTag

public java.lang.String getTag()
Returns the tag of the XML element

Returns:
tag of the XML element

getParentElement

public XmlElement getParentElement()
Returns the parent element of this element.

Returns:
the parent element of this element

getElementAttributes

public java.util.Map<java.lang.String,java.lang.String> getElementAttributes()
Returns the map of the element attributes.

Returns:
the map of the element attributes

setUserObject

public void setUserObject(java.lang.Object object)
Sets the user object for this element.

Parameters:
object - - a user object to set

getUserObject

public java.lang.Object getUserObject()
Returns the user object set in this element (or null, if no object was set).

Returns:
the user object of this element