ijgen.generator.model
Class FieldConstraints

java.lang.Object
  extended by ijgen.generator.model.FieldConstraints
All Implemented Interfaces:
java.io.Serializable

public class FieldConstraints
extends java.lang.Object
implements java.io.Serializable

Author:
Detelin Zlatev Class responsible for storing the constraints for a specific field.
See Also:
Serialized Form

Constructor Summary
FieldConstraints()
           
 
Method Summary
 int getMaxLength()
          Sets the maximum length of the fields.
 int getMinLength()
          Gets the minimum length of the fields.
 java.lang.String getRegExpRule()
          Gets the regular expression validation rule for the field.
 boolean isRequired()
          Gets whether the field is required.
 void setMaxLength(int maxLength)
          Sets the maximum length of the fields.
 void setMinLength(int minLength)
          Sets the minimum length of the fields.
 void setRegExpRule(java.lang.String regExpRule)
          Sets the regular expression validation rule for the field.
 void setRequired(boolean required)
          Sets whether the field is required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldConstraints

public FieldConstraints()
Method Detail

isRequired

public boolean isRequired()
Gets whether the field is required.

Returns:
required status

setRequired

public void setRequired(boolean required)
Sets whether the field is required.

Parameters:
required - required status

getMinLength

public int getMinLength()
Gets the minimum length of the fields.

Returns:
minimum length

setMinLength

public void setMinLength(int minLength)
Sets the minimum length of the fields.

Parameters:
minLength - minimum length

getMaxLength

public int getMaxLength()
Sets the maximum length of the fields.

Returns:
maximum length

setMaxLength

public void setMaxLength(int maxLength)
Sets the maximum length of the fields.

Parameters:
maxLength - maximum length

getRegExpRule

public java.lang.String getRegExpRule()
Gets the regular expression validation rule for the field.

Returns:
regular expression

setRegExpRule

public void setRegExpRule(java.lang.String regExpRule)
Sets the regular expression validation rule for the field.

Parameters:
regExpRule - regular expression


Copyright © 2010 Detelin Zlatev. All Rights Reserved.