ValidateThis API Documentation

ValidateThis.core.annotationTypeReaders
Class AnnotationTypeReader_XML

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

public class AnnotationTypeReader_XML
extends BaseAnnotationTypeReader

I am a responsible for reading and processing an XML 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 any processPropertyDescs(any properties)
          I translate metadata into an array of properties to be used by the BaseMetadataProcessor
private any processPropertyRules(string objectType, any properties)
          I translate metadata into an array of properties to be used by the BaseMetadataProcessor
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
 
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

processPropertyDescs

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

Overrides:
processPropertyDescs in class BaseAnnotationTypeReader
Parameters:
properties

processPropertyRules

private any processPropertyRules(string objectType, any properties)
I translate metadata into an array of properties to be used by the BaseMetadataProcessor

Overrides:
processPropertyRules in class BaseAnnotationTypeReader
Parameters:
objectType - the type of object for which a BOValidator is being created
properties

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