ValidateThis API Documentation

ValidateThis.core
Class BaseMetadataProcessor

WEB-INF.cftags.component
        extended by ValidateThis.core.BaseMetadataProcessor
Direct Known Subclasses:
BaseAnnotationTypeReader , BaseFileReader

public class BaseMetadataProcessor
extends WEB-INF.cftags.component

I am a responsible for reading and processing an XML file.


Constructor Summary
init()
          I build a new metadataprocessor
 
Method Summary
private string determineLabel(string label)
 struct getValidations(string objectType, any metadataSource)
          I return the processed metadata in a struct that is expected by the BOValidator
 void loadRules(string objectType, any metadataSource)
          I read the validations XML file and reformat it into a struct
private void processConditions(any conditions)
          I process condition metadata
private void processContexts(any contexts)
          I process context metadata
private any processPropertyDescs(any properties)
          I process property descriptions
private any processPropertyRules(string objectType, any properties)
          I process property rules
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
I build a new metadataprocessor

Method Detail

determineLabel

private string determineLabel(string label)

Parameters:
label

getValidations

public struct getValidations(string objectType, any metadataSource)
I return the processed metadata in a struct that is expected by the BOValidator

Parameters:
objectType - the type of object for which a BOValidator is being created
metadataSource - the source of the metadata - may be a filename or a metadata struct

loadRules

public void loadRules(string objectType, any metadataSource)
I read the validations XML file and reformat it into a struct

Parameters:
objectType - the type of object for which a BOValidator is being created
metadataSource

processConditions

private void processConditions(any conditions)
I process condition metadata

Parameters:
conditions

processContexts

private void processContexts(any contexts)
I process context metadata

Parameters:
contexts

processPropertyDescs

private any processPropertyDescs(any properties)
I process property descriptions

Parameters:
properties

processPropertyRules

private any processPropertyRules(string objectType, any properties)
I process property rules

Parameters:
objectType - the type of object for which a BOValidator is being created
properties

ValidateThis API Documentation