com.softwareag.centrasite.appl.framework.validation.impl
Class DefaultErrorCodeFactory

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.DefaultErrorCodeFactory
All Implemented Interfaces:
ErrorCodeFactory

public class DefaultErrorCodeFactory
extends java.lang.Object
implements ErrorCodeFactory

Default implementation of ErrorCodeFactory. This class supports the following error code specifications: Simple specifications like

   errorCode="foo"
 
will be converted into


Nested Class Summary
static class DefaultErrorCodeFactory.DefaultErrorCode
          Default implementation of ErrorCode.
 
Constructor Summary
DefaultErrorCodeFactory()
           
 
Method Summary
 ErrorCode newErrorCode(java.lang.String pValue)
          Creates a new instance of ErrorCode.
protected  ErrorCode newErrorCode(java.lang.String pClassName, java.lang.String pInfo)
          Creates a new error code with the given class name and info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorCodeFactory

public DefaultErrorCodeFactory()
Method Detail

newErrorCode

protected ErrorCode newErrorCode(java.lang.String pClassName,
                                 java.lang.String pInfo)
                          throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Creates a new error code with the given class name and info.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

newErrorCode

public ErrorCode newErrorCode(java.lang.String pValue)
                       throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Description copied from interface: ErrorCodeFactory
Creates a new instance of ErrorCode.

Specified by:
newErrorCode in interface ErrorCodeFactory
Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException