edu.ou.kmi.buddyspace.xml
Class XEventBuilder

java.lang.Object
  |
  +--edu.ou.kmi.buddyspace.xml.XEventBuilder

public class XEventBuilder
extends java.lang.Object

XEventBuilder is used to construct XEvent objects


Constructor Summary
XEventBuilder()
          Creates a new XEventBuilder instance.
 
Method Summary
 Extension build()
          build a new XEvent object
 java.lang.String getID()
          returns the id in the object.
 boolean isComposing()
          returns if the composing flag is present.
 boolean isDelivered()
          returns if the delivered flag is present.
 boolean isDisplayed()
          returns if the displayed flag is present.
 boolean isOffline()
          returns if the offline flag is present.
 void reset()
          reset the builder to a default state, so it can be reused.
 void setID(java.lang.String newID)
          sets the id.
 void setIsComposing(boolean newIsComposing)
          sets if the composing flag is present.
 void setIsDelivered(boolean newIsDelivered)
          sets if the delivered flag is present.
 void setIsDisplayed(boolean newIsDisplayed)
          sets if the displayed flag is present.
 void setIsOffline(boolean newIsOffline)
          sets if the offline flag is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XEventBuilder

public XEventBuilder()
Creates a new XEventBuilder instance.

Method Detail

reset

public void reset()
reset the builder to a default state, so it can be reused.


isOffline

public boolean isOffline()
returns if the offline flag is present.


setIsOffline

public void setIsOffline(boolean newIsOffline)
sets if the offline flag is present.


isDelivered

public boolean isDelivered()
returns if the delivered flag is present.


setIsDelivered

public void setIsDelivered(boolean newIsDelivered)
sets if the delivered flag is present.


isDisplayed

public boolean isDisplayed()
returns if the displayed flag is present.


setIsDisplayed

public void setIsDisplayed(boolean newIsDisplayed)
sets if the displayed flag is present.


isComposing

public boolean isComposing()
returns if the composing flag is present.


setIsComposing

public void setIsComposing(boolean newIsComposing)
sets if the composing flag is present.


getID

public java.lang.String getID()
returns the id in the object.


setID

public void setID(java.lang.String newID)
sets the id.


build

public Extension build()
                throws java.lang.InstantiationException
build a new XEvent object

Returns:
an Extension value
Throws:
java.lang.InstantiationException - if insufficient or incorrect data was proviced.