|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.dem.objects.parameters.errors.ParameterError
public class ParameterError
Defines a type that represents an error on a parameter.
Constructor Summary | |
---|---|
ParameterError()
Constructor |
|
ParameterError(String constraintId,
ParameterConstraintResult constraintResult)
Constructor |
|
ParameterError(String message,
ParameterErrorType errorType)
Constructor. |
Method Summary | |
---|---|
IParameterConstraint |
getConstraint()
Inspector for the error constraint. |
List<String> |
getErrorIDs()
Inspector for the 'errorIDs' attribute. |
ParameterErrorType |
getErrorType()
Inspector for the error type. |
Exception |
getException()
Inspector for the error exception. |
String |
getId()
Inspector for the error ID. |
String |
getMessage()
Inspector for the error message. |
IParameterRule<?> |
getRule()
Inspector for the 'rule' attribute. |
IParameterValidator |
getValidator()
Inspector for the validator. |
boolean |
isForceShowError()
Inspector for the 'forceShowError' attribute. |
void |
setConstraint(String id,
IParameterConstraint constraint)
Modifier for the constraint. |
void |
setErrorIDs(List<String> errorIDs)
Modifier for the 'errorIDs' attribute. |
void |
setException(Exception exception)
Modifier for the exception. |
void |
setForceShowError(boolean forceShowError)
Modifier for the 'forceShowError' attribute. |
void |
setId(String newID)
Inspector for the error ID. |
void |
setMessage(String message)
Modifier for the 'message' attribute. |
void |
setRule(IParameterRule<?> rule)
Modifier for the 'rule' attribute. |
void |
setValidator(String id,
IParameterValidator validator)
Modifier for the validator. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterError()
public ParameterError(String constraintId, ParameterConstraintResult constraintResult)
constraintId
- The constraint IdconstraintResult
- The constraint resultpublic ParameterError(String message, ParameterErrorType errorType)
message
- the error message.errorType
- the error typeMethod Detail |
---|
public IParameterConstraint getConstraint()
public List<String> getErrorIDs()
public ParameterErrorType getErrorType()
public Exception getException()
public String getId()
public String getMessage()
public IParameterRule<?> getRule()
public IParameterValidator getValidator()
public boolean isForceShowError()
public void setConstraint(String id, IParameterConstraint constraint)
id
- the id of the constraintconstraint
- the constraint to setpublic void setErrorIDs(List<String> errorIDs)
errorIDs
- the new errorIDs value to setpublic void setException(Exception exception)
exception
- the exception to setpublic void setForceShowError(boolean forceShowError)
forceShowError
- the new forceShowError value to setpublic void setId(String newID)
newID
- the new ID.public void setMessage(String message)
message
- the new message value to setpublic void setRule(IParameterRule<?> rule)
rule
- the new rule value to setpublic void setValidator(String id, IParameterValidator validator)
id
- the id of the validatorvalidator
- the validator to setpublic String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |