|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.validation.ValidationError
public final class ValidationError
Default validation error entity to be included in Response.
| Constructor Summary | |
|---|---|
ValidationError()
|
|
ValidationError(String message,
String messageTemplate,
String path,
String invalidValue)
|
|
| Method Summary | |
|---|---|
String |
getInvalidValue()
Returns the string representation of the value failing to pass the constraint. |
String |
getMessage()
Return the interpolated error message for this validation error. |
String |
getMessageTemplate()
Return the non-interpolated error message for this validation error. |
String |
getPath()
Return the string representation of the property path to the value. |
void |
setInvalidValue(String invalidValue)
Set the value failing to pass the constraint. |
void |
setMessage(String message)
Return the interpolated error message for this validation error. |
void |
setMessageTemplate(String messageTemplate)
Set the non-interpolated error message for this validation error. |
void |
setPath(String path)
Set the string representation of the property path to the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationError()
public ValidationError(String message,
String messageTemplate,
String path,
String invalidValue)
| Method Detail |
|---|
public String getMessage()
public void setMessage(String message)
message - the interpolated error message for this validation error.public String getPath()
public void setPath(String path)
path - the string representation of the property path to the value.public String getInvalidValue()
public void setInvalidValue(String invalidValue)
invalidValue - the value failing to pass the constraint.public String getMessageTemplate()
public void setMessageTemplate(String messageTemplate)
messageTemplate - the non-interpolated error message for this validation error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||