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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fields
private java.util.Vector fields
- Vector of field objects contained.
items
private java.util.Vector items
- Vector of item and reported objects contained.
type
private java.lang.String type
title
private java.lang.String title
instructions
private java.lang.String instructions
XDataBuilder
public XDataBuilder()
- Creates a new
XDataBuilder
instance.
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.
getFields
public java.util.Vector getFields()
getFields
returns the vector representing the field
objects associated with this object.
addItem
public void addItem(XDataItem item)
addItem
adds a new item object to the end of this
list.
getItems
public java.util.Vector getItems()
getItems
returns the vector representing the item/reported
objects associated with this object.
build
public Extension build()
throws java.lang.InstantiationException
build
a new XData object