Package org.passay
Class RuleResultDetail
- java.lang.Object
-
- org.passay.RuleResultDetail
-
public class RuleResultDetail extends Object
Describes an exact cause of a rule validation failure.- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
errorCodes
Detail error codes.protected Map<String,Object>
parameters
Additional parameters that provide information about validation failure.
-
Constructor Summary
Constructors Constructor Description RuleResultDetail(String[] codes, Map<String,Object> params)
Creates a new rule result detail.RuleResultDetail(String code, Map<String,Object> params)
Creates a new rule result detail.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorCode()
Returns the least-specific error code.String[]
getErrorCodes()
Returns an array of error codes as provided at creation time.Map<String,Object>
getParameters()
Returns the parameters.Object[]
getValues()
Returns the parameter values.String
toString()
-
-
-
Method Detail
-
getErrorCode
public String getErrorCode()
Returns the least-specific error code.- Returns:
- error code.
-
getErrorCodes
public String[] getErrorCodes()
Returns an array of error codes as provided at creation time.- Returns:
- Array of error codes that the caller may assume are organized in order of decreasing specificity.
-
getParameters
public Map<String,Object> getParameters()
Returns the parameters.- Returns:
- map of parameter name to value.
-
getValues
public Object[] getValues()
Returns the parameter values.- Returns:
- array of parameters or empty array if no parameters defined.
-
-