ValidateThis API Documentation

ValidateThis.core
Class AnnotationReader

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

public class AnnotationReader
extends WEB-INF.cftags.component

I am a responsible for reading and processing rules in annotations from cfcs.


Constructor Summary
init(any transientFactory, any childObjectFactory, string extraFileReaderComponentPaths, string externalFileTypes, string extraAnnotationTypeReaderComponentPaths, string vtFolder)
          I build a new annotationReader
 
Method Summary
private string determineAnnotationFormat(array properties)
          I determine the type of annotation used in a property's metadata
private struct getObjectMetadata(any theObject, any componentPath)
          I return the object metadata from either an object or a component path
 any loadRulesFromAnnotations(any objectType, any theObject, any componentPath)
          I read the validation metadata from external files and reformat it into a struct
private void setAnnotationTypeReaders()
          I create rule validator objects from a list of component paths
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any transientFactory, any childObjectFactory, string extraFileReaderComponentPaths, string externalFileTypes, string extraAnnotationTypeReaderComponentPaths, string vtFolder)
I build a new annotationReader.

Parameters:
transientFactory
childObjectFactory
extraFileReaderComponentPaths
externalFileTypes
extraAnnotationTypeReaderComponentPaths
vtFolder
Method Detail

determineAnnotationFormat

private string determineAnnotationFormat(array properties)
I determine the type of annotation used in a property's metadata

Parameters:
properties

getObjectMetadata

private struct getObjectMetadata(any theObject, any componentPath)
I return the object metadata from either an object or a component path

Parameters:
theObject
componentPath

loadRulesFromAnnotations

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

Parameters:
objectType
theObject
componentPath

setAnnotationTypeReaders

private void setAnnotationTypeReaders()
I create rule validator objects from a list of component paths


ValidateThis API Documentation