ValidateThis API Documentation

ValidateThis.core.annotationTypeReaders
Class AnnotationTypeReader_VTML

WEB-INF.cftags.component
        extended by ValidateThis.core.BaseMetadataProcessor
            extended by ValidateThis.core.annotationTypeReaders.BaseAnnotationTypeReader
                extended by ValidateThis.core.annotationTypeReaders.AnnotationTypeReader_VTML

public class AnnotationTypeReader_VTML
extends BaseAnnotationTypeReader

I am used to setup validation rules in the framework with annotation & vtml.


Constructor Summary
init()
          I build a new VTML Annotation Reader
 
Method Summary
private any convertVTML(any theSource)
          I convert VTML annotation format for the framework
private any createConditionStruct(string theString)
private any createContextsStruct(string theString)
private Array createParametersArray(string theString)
private any getElementFromVTMLRule(string theString, struct thePos, [string mask=''])
 boolean isThisFormat(string annotationValue)
          I determine whether the annotation value contains this type of format
 boolean isVTML(string theSource)
          I determin if the annotation matches the VTML pattern
 void loadRules(string objectType, any metadataSource)
          I take the object metadta and reformat it into private properties
private any normalizeValidations(any theValidation, any theMetadata)
          I process a BusinessObject (CFC) and reformat property validation annotations it into a struct
private any processVTML(string theSource)
          I translate annotations to a struct the framework can use to add new rules
private array reformatProperties(any properties)
          I translate metadata into an array of properties to be used by the BaseMetadataProcessor
 
Methods inherited from class ValidateThis.core.annotationTypeReaders.BaseAnnotationTypeReader
annotationsAreThisFormat, processConditions, processContexts, processJSONOrList, processPropertyDescs, processPropertyRules
 
Methods inherited from class ValidateThis.core.BaseMetadataProcessor
determineLabel, getValidations
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
I build a new VTML Annotation Reader

Method Detail

convertVTML

private any convertVTML(any theSource)
I convert VTML annotation format for the framework.

Parameters:
theSource

createConditionStruct

private any createConditionStruct(string theString)

Parameters:
theString

createContextsStruct

private any createContextsStruct(string theString)

Parameters:
theString

createParametersArray

private Array createParametersArray(string theString)

Parameters:
theString

getElementFromVTMLRule

private any getElementFromVTMLRule(string theString, struct thePos, [string mask=''])

Parameters:
theString
thePos
mask

isThisFormat

public boolean isThisFormat(string annotationValue)
I determine whether the annotation value contains this type of format

Overrides:
isThisFormat in class BaseAnnotationTypeReader
Parameters:
annotationValue

isVTML

public boolean isVTML(string theSource)
I determin if the annotation matches the VTML pattern.

Parameters:
theSource

loadRules

public void loadRules(string objectType, any metadataSource)
I take the object metadta and reformat it into private properties

Overrides:
loadRules in class BaseAnnotationTypeReader
Parameters:
objectType - the type of object for which a BOValidator is being created
metadataSource - the object metadata

normalizeValidations

private any normalizeValidations(any theValidation, any theMetadata)
I process a BusinessObject (CFC) and reformat property validation annotations it into a struct

Overrides:
normalizeValidations in class BaseAnnotationTypeReader
Parameters:
theValidation
theMetadata

processVTML

private any processVTML(string theSource)
I translate annotations to a struct the framework can use to add new rules.

Parameters:
theSource

reformatProperties

private array reformatProperties(any properties)
I translate metadata into an array of properties to be used by the BaseMetadataProcessor

Parameters:
properties

ValidateThis API Documentation