|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.oval.AbstractCheck
net.sf.oval.configuration.annotation.AbstractAnnotationCheck<AssertConstraintSet>
net.sf.oval.constraint.AssertConstraintSetCheck
public class AssertConstraintSetCheck
| Constructor Summary | |
|---|---|
AssertConstraintSetCheck()
|
|
| Method Summary | |
|---|---|
void |
configure(AssertConstraintSet constraintAnnotation)
Configures the check based on the given constraint annotation. |
String |
getErrorCode()
|
String |
getId()
|
String |
getMessage()
gets the default message that is displayed if a corresponding message key is not found in the messages properties file default processed place holders are:
|
int |
getSeverity()
|
boolean |
isSatisfied(Object validatedObject,
Object valueToValidate,
OValContext context,
Validator validator)
This method is not used. |
void |
setErrorCode(String errorCode)
|
void |
setId(String id)
|
void |
setMessage(String message)
sets the default message that is displayed if a corresponding message key is not found in the messages properties file default processed place holders are:
|
void |
setSeverity(int severity)
|
| Methods inherited from class net.sf.oval.AbstractCheck |
|---|
createMessageVariables, getAppliesTo, getAppliesToDefault, getContext, getMessageVariables, getProfiles, getTarget, getWhen, isActive, requireMessageVariablesRecreation, setAppliesTo, setContext, setProfiles, setTarget, setWhen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.oval.Check |
|---|
getAppliesTo, getContext, getMessageVariables, getProfiles, getTarget, getWhen, isActive, setAppliesTo, setContext, setProfiles, setTarget, setWhen |
| Constructor Detail |
|---|
public AssertConstraintSetCheck()
| Method Detail |
|---|
public void configure(AssertConstraintSet constraintAnnotation)
configure in interface AnnotationCheck<AssertConstraintSet>configure in class AbstractAnnotationCheck<AssertConstraintSet>constraintAnnotation - the constraint annotation to use for configuration
public String getErrorCode()
throws UnsupportedOperationException
getErrorCode in interface CheckgetErrorCode in class AbstractCheckUnsupportedOperationExceptionpublic String getId()
public String getMessage()
throws UnsupportedOperationException
getMessage in interface CheckgetMessage in class AbstractCheckUnsupportedOperationException
public int getSeverity()
throws UnsupportedOperationException
getSeverity in interface CheckgetSeverity in class AbstractCheckUnsupportedOperationException
public boolean isSatisfied(Object validatedObject,
Object valueToValidate,
OValContext context,
Validator validator)
throws UnsupportedOperationException
validatedObject - the object/bean to validate the value against, for static fields or methods this is the classvalueToValidate - the value to validate, may be null when validating pre conditions for static methodscontext - the validation context (e.g. a field, a constructor parameter or a method parameter)validator - the calling validator
UnsupportedOperationException - always thrown if this method is invoked
public void setErrorCode(String errorCode)
throws UnsupportedOperationException
setErrorCode in interface ChecksetErrorCode in class AbstractCheckerrorCode - the error code to set
UnsupportedOperationExceptionpublic void setId(String id)
public void setMessage(String message)
throws UnsupportedOperationException
setMessage in interface ChecksetMessage in class AbstractCheckUnsupportedOperationException
public void setSeverity(int severity)
throws UnsupportedOperationException
setSeverity in interface ChecksetSeverity in class AbstractCheckseverity - the severity to set
UnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||