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

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.ValidationDefaults

public class ValidationDefaults
extends java.lang.Object

This object provides defaults to the validation frameworks. The object is typically created by parsing one or more XML documents, which are compliant to the validationDefaults.xsd file. The validation framework itself provides a default object, but the framework user (aka application programmer) may override these settings.

Obtaining ValidationDefaults objects is typically a comparatively expensive operation. It is therefore recommended to obtain these objects when the application comes up and store them in a singleton object or in a static variable.


Nested Class Summary
static class ValidationDefaults.ConditionFactory
          An instance of this class specifies the frameworks ConditionFactory.
static class ValidationDefaults.ConstraintFactory
          An instance of this class specifies the frameworks ConstraintFactory.
static class ValidationDefaults.ErrorCodeFactory
          An instance of this class specifies the frameworks ErrorCodeFactory.
static class ValidationDefaults.Implementation<T>
          Default class for deriving instances of "instantiation".
static class ValidationDefaults.Instantiation
          This enumeration is used to specify the various instantiation types.
static class ValidationDefaults.ScopeFactory
          An instance of this class specifies the frameworks ScopeFactory.
 
Constructor Summary
ValidationDefaults()
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Returns the validation factories classloader.
 ValidationDefaults.ConditionFactory getConditionFactory()
          Returns the specification of the ConditionFactory
 ValidationDefaults.ConstraintFactory getConstraintFactory()
          Returns the specification of the ConstraintFactory
 ValidationDefaults.ErrorCodeFactory getErrorCodeFactory()
          Returns the specification of the ErrorCodeFactory
 ValidationDefaults.ScopeFactory getScopeFactory()
          Returns the specification of the ScopeFactory
 ValidatableClasses getValidatableClasses()
          Returns the specification of the possible Validatable classes.
 void setClassLoader(java.lang.ClassLoader pClassLoader)
          Sets the validation factories classloader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationDefaults

public ValidationDefaults()
Method Detail

getValidatableClasses

public ValidatableClasses getValidatableClasses()
Returns the specification of the possible Validatable classes.


getScopeFactory

public ValidationDefaults.ScopeFactory getScopeFactory()
Returns the specification of the ScopeFactory


getConditionFactory

public ValidationDefaults.ConditionFactory getConditionFactory()
Returns the specification of the ConditionFactory


getConstraintFactory

public ValidationDefaults.ConstraintFactory getConstraintFactory()
Returns the specification of the ConstraintFactory


getErrorCodeFactory

public ValidationDefaults.ErrorCodeFactory getErrorCodeFactory()
Returns the specification of the ErrorCodeFactory


getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the validation factories classloader.


setClassLoader

public void setClassLoader(java.lang.ClassLoader pClassLoader)
Sets the validation factories classloader.