|
ValidateThis API Documentation | ||||
| FRAMES | |||||
WEB-INF.cftags.component
ValidateThis.core.Validation
public class Validation
I am a transient validation object.
| Constructor Summary | |
|---|---|
init(any objectChecker, any parameter)
I am the constructor |
|
| Method Summary | |
|---|---|
void |
addParameter(string name, any value, [string type='value'])
|
void |
fail(any FailureMessage)
I do what needs to be done when a validation fails |
void |
failWithResult(any result)
I do what needs to be done when a validation fails |
any |
getClientFieldName()
|
any |
getClientTest()
|
any |
getCondition()
|
any |
getConditionName()
|
any |
getContext()
|
any |
getCurrentLocale()
|
any |
getFailureMessage()
|
any |
getIsRequired()
|
any |
getIsSuccess()
|
any |
getMemento()
|
array |
getObjectList()
|
string |
getObjectType()
|
any |
getObjectValue([any propertyName='[runtime expression]'])
I return the value from the stored object that corresponds to the field being validated |
any |
getParameter(string parameterName)
|
any |
getParameterValue(string parameterName, [any defaultValue=''])
|
any |
getParameters()
This will process the Parameters struct to return just values |
any |
getPropertyDesc()
|
string |
getPropertyMethodName([any propertyName='[runtime expression]'])
I determine the method to use for a given property |
any |
getPropertyName()
|
any |
getResult()
|
any |
getServerTest()
|
any |
getTheObject()
|
any |
getValType()
|
any |
getValidateThis()
|
any |
hasClientTest()
|
any |
hasCondition()
|
any |
hasFailureMessage()
|
boolean |
hasParameter(string name)
|
boolean |
hasParameters()
|
boolean |
hasResult()
|
any |
hasServerTest()
|
any |
load(any ValStruct)
I load a fresh validation rule into the validation object, which allows it to be reused |
boolean |
propertyExists([any propertyName='[runtime expression]'])
I report whether a property exists in the object being validated |
boolean |
propertyHasValue([any propertyName='[runtime expression]'])
I determine whether the property that the validation references has a value |
void |
setClientFieldName(any ClientFieldName)
|
void |
setCondition(any Condition)
|
any |
setContext([string context=''])
|
any |
setCurrentLocale([string currentLocale=''])
|
void |
setFailureMessage(any FailureMessage)
|
void |
setIsRequired(any IsRequired)
|
void |
setIsSuccess(any IsSuccess)
|
void |
setObjectList(array objectList)
|
void |
setObjectType(string ObjectType)
|
void |
setParameters(any Parameters)
|
void |
setPropertyDesc(any PropertyDesc)
|
void |
setPropertyName(any PropertyName)
|
any |
setResult([any result=''])
|
void |
setTheObject(any theObject)
|
void |
setValType(any ValType)
|
any |
setup(any ValidateThis, [any theObject=''], [array objectList='[runtime expression]'])
I am called after the constructor to load data into an instance |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
Public init(any objectChecker, any parameter)
objectChecker - A component used to distinguish object typesparameter - A reusable transient Parameter object| Method Detail |
|---|
public void addParameter(string name, any value, [string type='value'])
namevaluetypepublic void fail(any FailureMessage)
FailureMessage - A Failure message to store.public void failWithResult(any result)
result - A Failure message to store.public any getClientFieldName()
public any getClientTest()
public any getCondition()
public any getConditionName()
public any getContext()
public any getCurrentLocale()
public any getFailureMessage()
public any getIsRequired()
public any getIsSuccess()
public any getMemento()
public array getObjectList()
public string getObjectType()
public any getObjectValue([any propertyName='[runtime expression]'])
propertyNamepublic any getParameter(string parameterName)
parameterNamepublic any getParameterValue(string parameterName, [any defaultValue=''])
parameterNamedefaultValuepublic any getParameters()
public any getPropertyDesc()
public string getPropertyMethodName([any propertyName='[runtime expression]'])
propertyNamepublic any getPropertyName()
public any getResult()
public any getServerTest()
public any getTheObject()
public any getValType()
public any getValidateThis()
public any hasClientTest()
public any hasCondition()
public any hasFailureMessage()
public boolean hasParameter(string name)
namepublic boolean hasParameters()
public boolean hasResult()
public any hasServerTest()
Public any load(any ValStruct)
ValStruct - The validation struct from the xml filepublic boolean propertyExists([any propertyName='[runtime expression]'])
propertyNamepublic boolean propertyHasValue([any propertyName='[runtime expression]'])
propertyNamepublic void setClientFieldName(any ClientFieldName)
ClientFieldNamepublic void setCondition(any Condition)
Conditionpublic any setContext([string context=''])
contextpublic any setCurrentLocale([string currentLocale=''])
currentLocalepublic void setFailureMessage(any FailureMessage)
FailureMessagepublic void setIsRequired(any IsRequired)
IsRequiredpublic void setIsSuccess(any IsSuccess)
IsSuccesspublic void setObjectList(array objectList)
objectListpublic void setObjectType(string ObjectType)
ObjectTypepublic void setParameters(any Parameters)
Parameterspublic void setPropertyDesc(any PropertyDesc)
PropertyDescpublic void setPropertyName(any PropertyName)
PropertyNamepublic any setResult([any result=''])
resultpublic void setTheObject(any theObject)
theObjectpublic void setValType(any ValType)
ValTypePublic any setup(any ValidateThis, [any theObject=''], [array objectList='[runtime expression]'])
ValidateThis - The ValidateThis.cfc facade objecttheObject - The object being validatedobjectList - A list of objects already validated
|
ValidateThis API Documentation | ||||
| FRAMES | |||||