public class RuleResultDetail extends Object
Modifier and Type | Field and Description |
---|---|
protected String[] |
errorCodes
Detail error codes.
|
protected Map<String,Object> |
parameters
Additional parameters that provide information about validation failure.
|
Constructor and 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.
|
Modifier and Type | Method and 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() |
protected final String[] errorCodes
public RuleResultDetail(String code, Map<String,Object> params)
code
- error code.params
- error details.public String getErrorCode()
public String[] getErrorCodes()
public Map<String,Object> getParameters()
public Object[] getValues()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.