|
||||||||||
| 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(java.lang.String message,
java.lang.String messageTemplate,
java.lang.String path,
java.lang.String invalidValue)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getInvalidValue()
Returns the string representation of the value failing to pass the constraint. |
java.lang.String |
getMessage()
Return the interpolated error message for this validation error. |
java.lang.String |
getMessageTemplate()
Return the non-interpolated error message for this validation error. |
java.lang.String |
getPath()
Return the string representation of the property path to the value. |
void |
setInvalidValue(java.lang.String invalidValue)
Set the value failing to pass the constraint. |
void |
setMessage(java.lang.String message)
Return the interpolated error message for this validation error. |
void |
setMessageTemplate(java.lang.String messageTemplate)
Set the non-interpolated error message for this validation error. |
void |
setPath(java.lang.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(java.lang.String message,
java.lang.String messageTemplate,
java.lang.String path,
java.lang.String invalidValue)
| Method Detail |
|---|
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - the interpolated error message for this validation error.public java.lang.String getPath()
public void setPath(java.lang.String path)
path - the string representation of the property path to the value.public java.lang.String getInvalidValue()
public void setInvalidValue(java.lang.String invalidValue)
invalidValue - the value failing to pass the constraint.public java.lang.String getMessageTemplate()
public void setMessageTemplate(java.lang.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 | |||||||||