org.oddjob.arooa.parsing
Class ArooaElement

java.lang.Object
  extended by org.oddjob.arooa.parsing.ArooaElement
All Implemented Interfaces:
Serializable

public class ArooaElement
extends Object
implements Serializable

Represent an element, which is an abstract of an XML element but XML agnostic, so that an Arooa configuration could be anything, not just XML.

See Also:
Serialized Form
Author:
rob

Constructor Summary
ArooaElement(String tag)
           
ArooaElement(String tag, ArooaAttributes attributes)
           
ArooaElement(URI uri, String tag)
           
ArooaElement(URI uri, String tag, ArooaAttributes attributes)
           
 
Method Summary
 ArooaElement addAttribute(String name, String value)
           
 boolean equals(Object obj)
           
 ArooaAttributes getAttributes()
           
 String getTag()
           
 URI getUri()
           
 int hashCode()
           
 ArooaElement removeAttribute(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArooaElement

public ArooaElement(URI uri,
                    String tag,
                    ArooaAttributes attributes)

ArooaElement

public ArooaElement(URI uri,
                    String tag)

ArooaElement

public ArooaElement(String tag)

ArooaElement

public ArooaElement(String tag,
                    ArooaAttributes attributes)
Method Detail

getTag

public String getTag()

getUri

public URI getUri()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

removeAttribute

public ArooaElement removeAttribute(String name)

addAttribute

public ArooaElement addAttribute(String name,
                                 String value)

toString

public String toString()
Overrides:
toString in class Object

getAttributes

public ArooaAttributes getAttributes()