edu.ou.kmi.buddyspace.xml
Class XDataFieldBuilder

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

public class XDataFieldBuilder
extends java.lang.Object

XDataFieldBuilder is used to construct XDataField objects


Constructor Summary
XDataFieldBuilder()
          Creates a new XDataFieldBuilder instance.
 
Method Summary
 void addChild(XMLData child)
          addChild adds a new child tag object to the end of this list.
 void addValue(java.lang.String newValue)
           
 Extension build()
          build a new MapTag object
 java.lang.String getDesc()
           
 java.lang.String getLabel()
           
 java.util.Vector getOptions()
          getOptions returns the vector representing the option objects associated with this object.
 boolean getRequired()
           
 java.lang.String getType()
           
 java.util.Vector getValues()
          getOptions returns the vector representing the value objects associated with this object.
 java.lang.String getVar()
           
 void reset()
          reset the builder to a default state, so it can be reused.
 void setDesc(java.lang.String newDesc)
           
 void setLabel(java.lang.String newLabel)
           
 void setRequired(boolean newRequired)
           
 void setType(java.lang.String newType)
           
 void setVar(java.lang.String newVar)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDataFieldBuilder

public XDataFieldBuilder()
Creates a new XDataFieldBuilder instance.

Method Detail

reset

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


setLabel

public void setLabel(java.lang.String newLabel)

getLabel

public java.lang.String getLabel()

setType

public void setType(java.lang.String newType)

getType

public java.lang.String getType()

setVar

public void setVar(java.lang.String newVar)

getVar

public java.lang.String getVar()

setDesc

public void setDesc(java.lang.String newDesc)

getDesc

public java.lang.String getDesc()

setRequired

public void setRequired(boolean newRequired)

getRequired

public boolean getRequired()

addValue

public void addValue(java.lang.String newValue)

addChild

public void addChild(XMLData child)
addChild adds a new child tag object to the end of this list.


getOptions

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

Returns:
a Vector value

getValues

public java.util.Vector getValues()
getOptions returns the vector representing the value objects associated with this object.

Returns:
a Vector value

build

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

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