com.mtgi.analytics
Class ImmutableEventDataElement

java.lang.Object
  extended by com.mtgi.analytics.EventDataElement
      extended by com.mtgi.analytics.ImmutableEventDataElement
All Implemented Interfaces:
Serializable

public class ImmutableEventDataElement
extends EventDataElement

See Also:
Serialized Form

Field Summary
protected  T next
           
 
Constructor Summary
ImmutableEventDataElement(String name)
           
 
Method Summary
 void add(String name, Object value)
          Set a named attribute on this element.
 void addElement(EventDataElement child)
           
 EventDataElement addElement(String name)
          Add a child element with the given name to this element.
 boolean isEmpty()
           
protected  void setNext(EventDataElement parent, EventDataElement next)
          set the next sibling in the linked list of children under parent.
 void setText(String text)
           
 
Methods inherited from class com.mtgi.analytics.EventDataElement
getName, getText, initialize, isNull, iterate, iterateChildren, iterateProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

protected T extends com.mtgi.analytics.DataLink<T> next
Constructor Detail

ImmutableEventDataElement

public ImmutableEventDataElement(String name)
Method Detail

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in class EventDataElement
Returns:
true if this element has no child properties or child elements

add

public void add(String name,
                Object value)
Description copied from class: EventDataElement
Set a named attribute on this element. Values may be null. Calling this method multiple times with the same name will result in previous values being overwritten.

Overrides:
add in class EventDataElement

addElement

public void addElement(EventDataElement child)
Overrides:
addElement in class EventDataElement

addElement

public EventDataElement addElement(String name)
Description copied from class: EventDataElement
Add a child element with the given name to this element.

Overrides:
addElement in class EventDataElement

setNext

protected void setNext(EventDataElement parent,
                       EventDataElement next)
Description copied from class: EventDataElement
set the next sibling in the linked list of children under parent.

Overrides:
setNext in class EventDataElement

setText

public void setText(String text)
Overrides:
setText in class EventDataElement