ValidateThis API Documentation

ValidateThis.core.annotationTypeReaders
Class AnnotationTypeReader_JSON

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

public class AnnotationTypeReader_JSON
extends BaseAnnotationTypeReader

I am a responsible for reading and processing a JSON annotation.


Method Summary
 boolean isThisFormat(string annotationValue)
          I determine whether the annotation value contains this type of format
 void loadRules(string objectType, any metadataSource)
          I take the object metadta and reformat it into private properties
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, init, normalizeValidations, processConditions, processContexts, processJSONOrList, processPropertyDescs, processPropertyRules
 
Methods inherited from class ValidateThis.core.BaseMetadataProcessor
determineLabel, getValidations
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

isThisFormat

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

Overrides:
isThisFormat in class BaseAnnotationTypeReader
Parameters:
annotationValue

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

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