com.bowstreet.webapp
Interface ValidationData


public interface ValidationData

Interface to access DataDefinition validation information.


Method Summary
 boolean getEnableValidation()
          Gets the flag specifying if the field should be validated.
 java.lang.String getMask()
          Get the validate format according to a regular expression mask (e.g.
 int getMaxlength()
          Gets the value to validate input data that doesn't exceed a specified maximum length.
 int getMinlength()
          Gets the value to validate input data that doesn't exceed a specified minimum length.
 java.lang.String getMsg()
          Gets the custom message key.
 java.util.Iterator getProperties()
          Gets an iterator to the keys of the properties.
 java.lang.Object getProperty(java.lang.String key)
          Gets a generic property on this object.
 Range getRange()
          Gets the Range used to validate that field is within a specified range.
 java.lang.String getType()
          Gets the validation type (e.g. email, phone, integer).
 boolean isRequired()
          Gets the value that specifies mandatory field validation.
 void putProperty(java.lang.String key, java.lang.Object value)
          Sets a generic property on this object.
 void setEnableValidation(boolean enable)
          Sets the flag specifying if the field should be validated.
 void setMask(java.lang.String mask)
          Sets the validate format according to a regular expression mask (e.g.
 void setMaxlength(int maxlength)
          Sets the value to validate input data that doesn't exceed a specified maximum length.
 void setMinlength(int minlength)
          Sets the value to validate input data that doesn't exceed a specified minimum length.
 void setMsg(java.lang.String msg)
          Sets the custom message key.
 void setRange(Range range)
          Sets the Range used to validate that field is within a specified range.
 void setRequired(boolean required)
          Sets the value that specifies mandatory field validation.
 void setType(java.lang.String type)
          Sets the validation type (e.g. email, phone, integer).
 

Method Detail

getEnableValidation

boolean getEnableValidation()
Gets the flag specifying if the field should be validated.

Returns:
true if the field should be validated, else false.

getMask

java.lang.String getMask()
Get the validate format according to a regular expression mask (e.g. [a-zA-Z])

Returns:
Returns the mask.

getMaxlength

int getMaxlength()
Gets the value to validate input data that doesn't exceed a specified maximum length.

Returns:
Returns the maxlength.

getMinlength

int getMinlength()
Gets the value to validate input data that doesn't exceed a specified minimum length.

Returns:
Returns the minlength.

getMsg

java.lang.String getMsg()
Gets the custom message key.

Returns:
Returns the msg.

getProperties

java.util.Iterator getProperties()
Gets an iterator to the keys of the properties.

Returns:
Iterator of String property keys.

getProperty

java.lang.Object getProperty(java.lang.String key)
Gets a generic property on this object.

Parameters:
key - The property key.
Returns:
The property value.

getRange

Range getRange()
Gets the Range used to validate that field is within a specified range.

Returns:
Returns the range.

getType

java.lang.String getType()
Gets the validation type (e.g. email, phone, integer).

Returns:
Returns the type.

isRequired

boolean isRequired()
Gets the value that specifies mandatory field validation.

Returns:
Returns the required.

putProperty

void putProperty(java.lang.String key,
                 java.lang.Object value)
Sets a generic property on this object.

Parameters:
key - The property key.
value - The property value.

setEnableValidation

void setEnableValidation(boolean enable)
Sets the flag specifying if the field should be validated.

Parameters:
enable - The enableValidation to set.

setMask

void setMask(java.lang.String mask)
Sets the validate format according to a regular expression mask (e.g. [a-zA-Z])

Parameters:
mask - The mask to set.

setMaxlength

void setMaxlength(int maxlength)
Sets the value to validate input data that doesn't exceed a specified maximum length.

Parameters:
maxlength - The maxlength to set.

setMinlength

void setMinlength(int minlength)
Sets the value to validate input data that doesn't exceed a specified minimum length.

Parameters:
minlength - The minlength to set.

setMsg

void setMsg(java.lang.String msg)
Sets the custom message key.

Parameters:
msg - The msg to set.

setRange

void setRange(Range range)
Sets the Range used to validate that field is within a specified range.

Parameters:
range - The range to set.

setRequired

void setRequired(boolean required)
Sets the value that specifies mandatory field validation.

Parameters:
required - The required to set.

setType

void setType(java.lang.String type)
Sets the validation type (e.g. email, phone, integer).

Parameters:
type - The type to set.


Copyright © 2009 IBM. All Rights Reserved.