ValidateThis API Documentation

ValidateThis.core
Class ExternalFileReader

WEB-INF.cftags.component
        extended by ValidateThis.core.ExternalFileReader

public class ExternalFileReader
extends WEB-INF.cftags.component

I am a responsible for reading and processing external rules files.


Constructor Summary
init(any fileSystem, any transientFactory, string extraFileReaderComponentPaths, string externalFileTypes)
          I build a new externalFileReader
 
Method Summary
 any loadRulesFromExternalFile(any objectType, any definitionPath)
          I read the validation metadata from external files and reformat it into a struct
private string locateRulesFile(any objectType, any definitionPath, any fileType)
          I attempt to find an external rules definition file for an object and file type
private void verifyAtLeastOnePathIsValid(any definitionPath)
          I check to ensure that at least one path can be found
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any fileSystem, any transientFactory, string extraFileReaderComponentPaths, string externalFileTypes)
I build a new externalFileReader

Parameters:
fileSystem
transientFactory
extraFileReaderComponentPaths
externalFileTypes
Method Detail

loadRulesFromExternalFile

public any loadRulesFromExternalFile(any objectType, any definitionPath)
I read the validation metadata from external files and reformat it into a struct

Parameters:
objectType
definitionPath

locateRulesFile

private string locateRulesFile(any objectType, any definitionPath, any fileType)
I attempt to find an external rules definition file for an object and file type

Parameters:
objectType
definitionPath
fileType

verifyAtLeastOnePathIsValid

private void verifyAtLeastOnePathIsValid(any definitionPath)
I check to ensure that at least one path can be found

Parameters:
definitionPath

ValidateThis API Documentation