org.mentawai.util
Class Form

java.lang.Object
  extended by org.mentawai.util.Form

public class Form
extends java.lang.Object


Constructor Summary
Form(java.lang.String name)
           
 
Method Summary
 void addField(java.lang.String field)
           
 void addFields(java.lang.String... fields)
           
 void addOptionalField(boolean ignoreUnknownField, java.lang.String field)
           
 void addOptionalField(java.lang.String field)
           
 void addOptionalFields(boolean ignoreUnknownField, java.lang.String... fields)
           
 void addOptionalFields(java.lang.String... fields)
           
 void addRequiredField(boolean ignoreUnkownField, java.lang.String field)
           
 void addRequiredField(java.lang.String field)
           
 void addRequiredFields(boolean ignoreUnknownField, java.lang.String... fields)
           
 void addRequiredFields(java.lang.String... fields)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String[] getBooleanFields()
           
 java.lang.String[] getDateFields()
           
 java.lang.String[] getFields()
           
 java.lang.String[] getListFields()
           
 java.lang.String getName()
           
 int getNumberOfFields()
           
 int getNumberOfOptionalFields()
           
 int getNumberOfRequiredFields()
           
 java.lang.String[] getOptionalFields()
           
 java.lang.String[] getRequiredFields()
           
 java.lang.String[] getRequiredFieldsMinusBooleans()
           
 boolean hasField(java.lang.String field)
           
 int hashCode()
           
 boolean isOptional(java.lang.String field)
           
 boolean isRequired(java.lang.String field)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Form

public Form(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

addFields

public void addFields(java.lang.String... fields)

addField

public void addField(java.lang.String field)

hasField

public boolean hasField(java.lang.String field)

getNumberOfFields

public int getNumberOfFields()

getFields

public java.lang.String[] getFields()

getBooleanFields

public java.lang.String[] getBooleanFields()

getListFields

public java.lang.String[] getListFields()

getDateFields

public java.lang.String[] getDateFields()

addRequiredFields

public void addRequiredFields(java.lang.String... fields)

addRequiredFields

public void addRequiredFields(boolean ignoreUnknownField,
                              java.lang.String... fields)

addRequiredField

public void addRequiredField(java.lang.String field)

addRequiredField

public void addRequiredField(boolean ignoreUnkownField,
                             java.lang.String field)

isRequired

public boolean isRequired(java.lang.String field)

getRequiredFields

public java.lang.String[] getRequiredFields()

getRequiredFieldsMinusBooleans

public java.lang.String[] getRequiredFieldsMinusBooleans()

getNumberOfRequiredFields

public int getNumberOfRequiredFields()

addOptionalFields

public void addOptionalFields(java.lang.String... fields)

addOptionalFields

public void addOptionalFields(boolean ignoreUnknownField,
                              java.lang.String... fields)

addOptionalField

public void addOptionalField(java.lang.String field)

addOptionalField

public void addOptionalField(boolean ignoreUnknownField,
                             java.lang.String field)

isOptional

public boolean isOptional(java.lang.String field)

getOptionalFields

public java.lang.String[] getOptionalFields()

getNumberOfOptionalFields

public int getNumberOfOptionalFields()


Copyright © 2005 Mentawai Team. All Rights Reserved.