com.softwareag.centrasite.appl.framework.validation.impl
Class Validator.ErrorInfo

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.Validator.ErrorInfo
Enclosing class:
Validator

public static class Validator.ErrorInfo
extends java.lang.Object

The validator is collecting instances of this data bean, which holds a single validation constraints information.


Constructor Summary
Validator.ErrorInfo(java.lang.Object pSource, java.lang.String pSourceName, ErrorCode pErrorCode, java.lang.String pErrorMessage, java.lang.Object[] pDetails)
          Creates a new instance.
 
Method Summary
 java.lang.Object[] getDetails()
          Returns the error messages details, suitable for Formatter.format(String, Object...).
 ErrorCode getErrorCode()
          Returns the error messages code.
 java.lang.String getErrorMessage()
          Returns the error messages description, suitable for Formatter.format(String, Object...).
 java.lang.Object getSource()
          Returns the validation errors source object.
 java.lang.String getSourceName()
          Returns the source objects name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator.ErrorInfo

public Validator.ErrorInfo(java.lang.Object pSource,
                           java.lang.String pSourceName,
                           ErrorCode pErrorCode,
                           java.lang.String pErrorMessage,
                           java.lang.Object[] pDetails)
Creates a new instance.

Parameters:
pSource - The validation errors source object.
pSourceName - The source objects name.
pErrorCode - The error messages code.
pErrorMessage - The error messages description, suitable for Formatter.format(String, Object...).
pDetails - The error messages details, suitable for Formatter.format(String, Object...).
Method Detail

getSource

public java.lang.Object getSource()
Returns the validation errors source object.


getSourceName

public java.lang.String getSourceName()
Returns the source objects name.


getErrorCode

public ErrorCode getErrorCode()
Returns the error messages code.


getErrorMessage

public java.lang.String getErrorMessage()
Returns the error messages description, suitable for Formatter.format(String, Object...).


getDetails

public java.lang.Object[] getDetails()
Returns the error messages details, suitable for Formatter.format(String, Object...).