All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.codegen.template.RulesCompileContext-validators.vm Maven / Gradle / Ivy

There is a newer version: 5.19.9
Show newest version
#if ($tool.length($validatorsDefinitions) > 0)
	{
#foreach( $validatorsDefinition in $validatorsDefinitions )
#foreach( $validatorClass in $validatorsDefinition.ValidatorClasses )
#if ( ${tool.hasConstructorWithoutParams($validatorClass)} )
        addValidator(new ${validatorClass.Name}());
#elseif ( ${tool.hasConstructorWithPropertyName($validatorClass)} )
        addValidator(new ${validatorClass.Name}("${validatorsDefinition.PropertyName}"));
#elseif ( ${tool.hasConstructorWithConstraintForProperty($validatorClass)} )
        addValidator(new ${validatorClass.Name}("${validatorsDefinition.PropertyName}", "${validatorsDefinition.getPropertyConstraints($validatorClass)}"));
#else
        //WARNING failed to process "${validatorClass.Name}" validator.
#end
#end#end
	}
#end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy