Package org.passay

Class RuleResultDetail


  • public class RuleResultDetail
    extends Object
    Describes an exact cause of a rule validation failure.
    Author:
    Middleware Services
    • Field Detail

      • errorCode

        protected final String errorCode
        Detail error code.
      • parameters

        protected final Map<String,​Object> parameters
        Additional parameters that provide information about validation failure.
    • Constructor Detail

      • RuleResultDetail

        public RuleResultDetail​(String code,
                                Map<String,​Object> params)
        Creates a new rule result detail.
        Parameters:
        code - error code.
        params - error details.
    • Method Detail

      • getErrorCode

        public String getErrorCode()
        Returns the error code.
        Returns:
        error code.
      • 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.