edu.ou.kmi.buddyspace.xml
Class XDataItemBuilder

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

public class XDataItemBuilder
extends java.lang.Object

XDataItemBuilder is used to construct XDataItem objects


Constructor Summary
XDataItemBuilder()
          Creates a new XDataItemBuilder instance.
 
Method Summary
 void addField(XDataField field)
          addField adds a new field object to the end of this list.
 Extension build()
          build a new XData object
 java.util.Vector getFields()
          getFields returns the vector representing the field objects associated with this object.
 boolean isReported()
           
 void reset()
          reset the builder to a default state, so it can be reused.
 void setReported(boolean reported)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDataItemBuilder

public XDataItemBuilder()
Creates a new XDataItemBuilder instance.

Method Detail

reset

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


setReported

public void setReported(boolean reported)

isReported

public boolean isReported()

addField

public void addField(XDataField field)
addField adds a new field object to the end of this list.

Parameters:
field - an XDataField value

getFields

public java.util.Vector getFields()
getFields returns the vector representing the field objects associated with this object.

Returns:
a Vector value

build

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

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