edu.ou.kmi.buddyspace.xml
Class XDataBuilder

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

public class XDataBuilder
extends java.lang.Object

XDataBuilder is used to construct XData objects


Constructor Summary
XDataBuilder()
          Creates a new XDataBuilder instance.
 
Method Summary
 void addField(XDataField field)
          addField adds a new field object to the end of this list.
 void addItem(XDataItem item)
          addItem adds a new item 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.
 java.lang.String getInstructions()
           
 java.util.Vector getItems()
          getItems returns the vector representing the item/reported objects associated with this object.
 java.lang.String getTitle()
           
 java.lang.String getType()
           
 void reset()
          reset the builder to a default state, so it can be reused.
 void setInstructions(java.lang.String newInstructions)
           
 void setTitle(java.lang.String newTitle)
           
 void setType(java.lang.String newType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDataBuilder

public XDataBuilder()
Creates a new XDataBuilder instance.

Method Detail

reset

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


setType

public void setType(java.lang.String newType)

getType

public java.lang.String getType()

setTitle

public void setTitle(java.lang.String newTitle)

getTitle

public java.lang.String getTitle()

setInstructions

public void setInstructions(java.lang.String newInstructions)

getInstructions

public java.lang.String getInstructions()

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

addItem

public void addItem(XDataItem item)
addItem adds a new item object to the end of this list.

Parameters:
item - an XDataItem value

getItems

public java.util.Vector getItems()
getItems returns the vector representing the item/reported 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.