Class ResteasyConstraintViolation
- java.lang.Object
-
- org.jboss.resteasy.api.validation.ResteasyConstraintViolation
-
- All Implemented Interfaces:
java.io.Serializable
public class ResteasyConstraintViolation extends java.lang.Object implements java.io.Serializable- Version:
- $Revision: 1.1 $ Copyright Jun 4, 2013
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ConstraintType.TypeconstraintTypeprivate java.lang.Stringmessageprivate java.lang.Stringpathprivate static longserialVersionUIDprivate java.lang.Stringvalue
-
Constructor Summary
Constructors Constructor Description ResteasyConstraintViolation()ResteasyConstraintViolation(ConstraintType.Type constraintType, java.lang.String path, java.lang.String message, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintType.TypegetConstraintType()java.lang.StringgetMessage()java.lang.StringgetPath()java.lang.StringgetValue()java.lang.StringtoString()java.lang.Stringtype()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
constraintType
private ConstraintType.Type constraintType
-
path
private java.lang.String path
-
message
private java.lang.String message
-
value
private java.lang.String value
-
-
Constructor Detail
-
ResteasyConstraintViolation
public ResteasyConstraintViolation(ConstraintType.Type constraintType, java.lang.String path, java.lang.String message, java.lang.String value)
-
ResteasyConstraintViolation
public ResteasyConstraintViolation()
-
-
Method Detail
-
getConstraintType
public ConstraintType.Type getConstraintType()
- Returns:
- type of constraint
-
getPath
public java.lang.String getPath()
- Returns:
- description of element violating constraint
-
getMessage
public java.lang.String getMessage()
- Returns:
- description of constraint violation
-
getValue
public java.lang.String getValue()
- Returns:
- object in violation of constraint
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation of violation
-
type
public java.lang.String type()
- Returns:
- String form of violation type
-
-