pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.configuration
Class FormConfiguration.FormFieldConfiguration

java.lang.Object
  extended by org.torweg.pulse.configuration.FormConfiguration.FormFieldConfiguration
All Implemented Interfaces:
java.io.Serializable, INamed
Enclosing class:
FormConfiguration

public static class FormConfiguration.FormFieldConfiguration
extends java.lang.Object
implements INamed, java.io.Serializable

A configuration for a form field.

Version:
$Revision: 1387 $
Author:
Christian Schatt
See Also:
Serialized Form

Constructor Summary
protected FormConfiguration.FormFieldConfiguration()
          The default constructor.
  FormConfiguration.FormFieldConfiguration(java.lang.String n, boolean f, java.lang.String e)
          The constructor that sets the name, the required-flag and the regular expression.
 
Method Summary
 java.lang.String getName()
          Returns the name of the form field.
 java.lang.String getRegularExpression()
          Returns the regular expression used to validate the value for the form field.
 boolean isRequired()
          Returns the required-flag indicating whether the form field needs to be set.
protected  void setName(java.lang.String n)
          Sets the name of the form field.
protected  void setRegularExpression(java.lang.String e)
          Sets the regular expression used to validate the value for the form field.
protected  void setRequired(boolean f)
          Sets the required-flag indicating whether the form field needs to be set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormConfiguration.FormFieldConfiguration

protected FormConfiguration.FormFieldConfiguration()
The default constructor.


FormConfiguration.FormFieldConfiguration

public FormConfiguration.FormFieldConfiguration(java.lang.String n,
                                                boolean f,
                                                java.lang.String e)
The constructor that sets the name, the required-flag and the regular expression.

Parameters:
n - the name to set
f - the required-flag to set
e - the regular expression to set
Method Detail

getName

public final java.lang.String getName()
Returns the name of the form field.

Specified by:
getName in interface INamed
Returns:
the name

setName

protected final void setName(java.lang.String n)
Sets the name of the form field.

Parameters:
n - the name to set

isRequired

public final boolean isRequired()
Returns the required-flag indicating whether the form field needs to be set.

Returns:
the required-flag

setRequired

protected final void setRequired(boolean f)
Sets the required-flag indicating whether the form field needs to be set.

Parameters:
f - the required-flag to set

getRegularExpression

public final java.lang.String getRegularExpression()
Returns the regular expression used to validate the value for the form field.

Returns:
the regular expression

setRegularExpression

protected final void setRegularExpression(java.lang.String e)
Sets the regular expression used to validate the value for the form field.

Parameters:
e - the regular expression to set