|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.cms.util.validators.AbstractValidator
public abstract class AbstractValidator
| Constructor Summary | |
|---|---|
protected |
AbstractValidator(java.lang.String fieldName)
|
protected |
AbstractValidator(java.lang.String fieldName,
boolean isRequired)
|
protected |
AbstractValidator(java.lang.String fieldName,
boolean isRequired,
boolean mustBeUnique,
java.lang.Class objectClass,
java.lang.Integer excludeId,
java.lang.Object excludeObject)
|
| Method Summary | |
|---|---|
protected void |
addConstraintException(java.lang.String errorCode)
|
protected void |
failIfAnyExceptionsFound()
|
java.lang.Integer |
getExcludeId()
Returns the excludeId. |
java.lang.Object |
getExcludeObject()
Returns the excludeName. |
java.lang.String |
getFieldName()
Returns the fieldName. |
java.lang.Class |
getObjectClass()
Returns the objectClass. |
boolean |
isMustBeUnique()
Returns the mustBeUnique. |
boolean |
isRequired()
Returns the isRequired. |
void |
setExcludeId(java.lang.Integer excludeId)
Sets the excludeId. |
void |
setExcludeObject(java.lang.Object excludeObject)
Sets the excludeId. |
void |
setFieldName(java.lang.String fieldName)
Sets the fieldName. |
void |
setIsRequired(boolean isRequired)
Sets the isRequired. |
void |
setMustBeUnique(boolean mustBeUnique)
Sets the mustBeUnique. |
void |
setObjectClass(java.lang.Class objectClass)
Sets the objectClass. |
protected void |
validateIsRequired(java.lang.Object value)
|
protected void |
validateUniqueness(java.lang.String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractValidator(java.lang.String fieldName)
protected AbstractValidator(java.lang.String fieldName,
boolean isRequired)
protected AbstractValidator(java.lang.String fieldName,
boolean isRequired,
boolean mustBeUnique,
java.lang.Class objectClass,
java.lang.Integer excludeId,
java.lang.Object excludeObject)
| Method Detail |
|---|
protected void validateIsRequired(java.lang.Object value)
throws ConstraintException
ConstraintException
protected void validateUniqueness(java.lang.String value)
throws ConstraintException,
SystemException
ConstraintException
SystemExceptionprotected final void addConstraintException(java.lang.String errorCode)
protected final void failIfAnyExceptionsFound()
throws ConstraintException
ConstraintExceptionpublic java.lang.String getFieldName()
public void setFieldName(java.lang.String fieldName)
fieldName - The fieldName to setpublic boolean isRequired()
public void setIsRequired(boolean isRequired)
isRequired - The isRequired to setpublic boolean isMustBeUnique()
public void setMustBeUnique(boolean mustBeUnique)
mustBeUnique - The mustBeUnique to setpublic java.lang.Class getObjectClass()
public void setObjectClass(java.lang.Class objectClass)
objectClass - The objectClass to setpublic java.lang.Integer getExcludeId()
public void setExcludeId(java.lang.Integer excludeId)
excludeId - The excludeId to setpublic java.lang.Object getExcludeObject()
public void setExcludeObject(java.lang.Object excludeObject)
excludeId - The excludeId to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||