|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ou.kmi.buddyspace.xml.XDataBuilder
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 |
public XDataBuilder()
XDataBuilder
instance.
Method Detail |
public void reset()
reset
the builder to a default state, so it can be reused.
public void setType(java.lang.String newType)
public java.lang.String getType()
public void setTitle(java.lang.String newTitle)
public java.lang.String getTitle()
public void setInstructions(java.lang.String newInstructions)
public java.lang.String getInstructions()
public void addField(XDataField field)
addField
adds a new field object to the end of this
list.
field
- an XDataField
valuepublic java.util.Vector getFields()
getFields
returns the vector representing the field
objects associated with this object.
Vector
valuepublic void addItem(XDataItem item)
addItem
adds a new item object to the end of this
list.
item
- an XDataItem
valuepublic java.util.Vector getItems()
getItems
returns the vector representing the item/reported
objects associated with this object.
Vector
valuepublic Extension build() throws java.lang.InstantiationException
build
a new XData object
Extension
value
java.lang.InstantiationException
- if insufficient or incorrect data
was proviced.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |