edu.vt.middleware.password
Class RuleResultDetail

java.lang.Object
  extended by edu.vt.middleware.password.RuleResultDetail

public class RuleResultDetail
extends Object

Describes an exact cause of a rule validation failure.

Version:
$Revision: 1614 $ $Date: 2010-09-20 15:02:39 -0400 (Mon, 20 Sep 2010) $
Author:
Middleware Services

Field Summary
protected  String errorCode
          Detail error code.
protected  Map<String,?> parameters
          Additional parameters that provide information about validation failure.
 
Constructor Summary
RuleResultDetail(String code, Map<String,?> params)
          Creates a new rule result detail.
 
Method Summary
 String getErrorCode()
          Returns the error code.
 Map<String,?> getParameters()
          Returns the parameters.
 Object[] getValues()
          Returns the parameter values.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorCode

protected final String errorCode
Detail error code.


parameters

protected final Map<String,?> parameters
Additional parameters that provide information about validation failure.

Constructor Detail

RuleResultDetail

public RuleResultDetail(String code,
                        Map<String,?> 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,?> 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.

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class Object
Returns:
string representation


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.