|
ValidateThis API Documentation | ||||
| FRAMES | |||||
WEB-INF.cftags.component
ValidateThis.core.BaseMetadataProcessor
ValidateThis.core.annotationTypeReaders.BaseAnnotationTypeReader
ValidateThis.core.annotationTypeReaders.AnnotationTypeReader_VTML
public class AnnotationTypeReader_VTML
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.BaseMetadataProcessor |
|---|
determineLabel, getValidations
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init()
| Method Detail |
|---|
private any convertVTML(any theSource)
theSourceprivate any createConditionStruct(string theString)
theStringprivate any createContextsStruct(string theString)
theStringprivate Array createParametersArray(string theString)
theStringprivate any getElementFromVTMLRule(string theString, struct thePos, [string mask=''])
theStringthePosmaskpublic boolean isThisFormat(string annotationValue)
isThisFormat
in class
BaseAnnotationTypeReader
annotationValuepublic boolean isVTML(string theSource)
theSourcepublic void loadRules(string objectType, any metadataSource)
loadRules
in class
BaseAnnotationTypeReader
objectType - the type of object for which a BOValidator is being createdmetadataSource - the object metadataprivate any normalizeValidations(any theValidation, any theMetadata)
normalizeValidations
in class
BaseAnnotationTypeReader
theValidationtheMetadataprivate any processVTML(string theSource)
theSourceprivate array reformatProperties(any properties)
properties
|
ValidateThis API Documentation | ||||
| FRAMES | |||||