edu.ou.kmi.buddyspace.xml
Class XDataField

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

public class XDataField
extends XMLData

XDataField contains <field> tag from jabber:x:data.

See Also:
Serialized Form

Constructor Summary
XDataField(XDataFieldBuilder builder)
          Creates a new XDataField instance, based on the builder state.
 
Method Summary
 void appendItem(java.lang.StringBuffer retval)
          appendItem converts this packet to XML.
 java.lang.String getDesc()
           
 java.lang.String getLabel()
           
 boolean getRequired()
           
 java.lang.String getType()
           
 java.lang.String getVar()
           
 java.util.Enumeration options()
          getOptions returns the enumeration representing the option objects associated with this object.
 java.util.Enumeration values()
          getOptions returns the enumeration representing the value objects associated with this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDataField

public XDataField(XDataFieldBuilder builder)
           throws java.lang.InstantiationException
Creates a new XDataField instance, based on the builder state.

Parameters:
builder - an XDataFieldBuilder value
Throws:
java.lang.InstantiationException - if malformed or insufficient data is in the builder.
Method Detail

getLabel

public java.lang.String getLabel()

getType

public java.lang.String getType()

getVar

public java.lang.String getVar()

getDesc

public java.lang.String getDesc()

getRequired

public boolean getRequired()

options

public java.util.Enumeration options()
getOptions returns the enumeration representing the option objects associated with this object.

Returns:
a Enumeration value

values

public java.util.Enumeration values()
getOptions returns the enumeration representing the value objects associated with this object.

Returns:
a Enumeration value

appendItem

public void appendItem(java.lang.StringBuffer retval)
appendItem converts this packet to XML. It then appends it to a StringBuffer.

Parameters:
retval - The StringBuffer to append to