*/
protected XValidationFactory getValidationFactory( String validationFileName )
{
if (( validationFileName != null ) && ( validationFileName.length() > 0 )) {
try {
XValidationFactory vf = ( XValidationFactory )validationFactories.get( validationFileName );
if ( vf == null ) {
String validationFactName = currentProject.getStartupParam( "ValidationFactory" );
if (( validationFactName != null ) && ( validationFactName.length() > 0 )) {
Object[] params = new Object[ 1 ];
params[ 0 ] = currentProject;
vf = (XValidationFactory)ReflectionHelper.constructViaReflection( validationFactName, params );
}
else
vf = new XValidationFactory( currentProject );
vf.addConfigFile( "Project", validationFileName, true );
validationFactories.put( validationFileName, vf );
}
return vf;
}
catch ( Exception ex ) {