org.mentawai.util
Class Form

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

public class Form
extends Object


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

Constructor Detail

Form

public Form(String name)
Method Detail

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

addFields

public void addFields(String... fields)

addField

public void addField(String field)

hasField

public boolean hasField(String field)

getNumberOfFields

public int getNumberOfFields()

getFields

public String[] getFields()

getBooleanFields

public String[] getBooleanFields()

getListFields

public String[] getListFields()

getDateFields

public String[] getDateFields()

addRequiredFields

public void addRequiredFields(String... fields)

addRequiredFields

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

addRequiredField

public void addRequiredField(String field)

addRequiredField

public void addRequiredField(boolean ignoreUnkownField,
                             String field)

isRequired

public boolean isRequired(String field)

getRequiredFields

public String[] getRequiredFields()

getRequiredFieldsMinusBooleans

public String[] getRequiredFieldsMinusBooleans()

getNumberOfRequiredFields

public int getNumberOfRequiredFields()

addOptionalFields

public void addOptionalFields(String... fields)

addOptionalFields

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

addOptionalField

public void addOptionalField(String field)

addOptionalField

public void addOptionalField(boolean ignoreUnknownField,
                             String field)

isOptional

public boolean isOptional(String field)

getOptionalFields

public String[] getOptionalFields()

getNumberOfOptionalFields

public int getNumberOfOptionalFields()


Copyright © 2013. All Rights Reserved.