Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.ou.kmi.buddyspace.xml
Class XDataBuilder  view XDataBuilder download XDataBuilder.java

java.lang.Object
  extended byedu.ou.kmi.buddyspace.xml.XDataBuilder

public class XDataBuilder
extends java.lang.Object

XDataBuilder is used to construct XData objects


Field Summary
private  java.util.Vector fields
          Vector of field objects contained.
private  java.lang.String instructions
           
private  java.util.Vector items
          Vector of item and reported objects contained.
private  java.lang.String title
           
private  java.lang.String type
           
 
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
 

Field Detail

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
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.


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