Package net.xoetrope.xui.validation

Examples of net.xoetrope.xui.validation.XValidationFactory


   */
  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 ) {
View Full Code Here

TOP

Related Classes of net.xoetrope.xui.validation.XValidationFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.