public interface Validator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
validate(java.lang.String pElementID,
java.util.Map pErrorMap,
java.lang.String pElementType,
java.lang.Object pRawValue,
java.util.ArrayList<ElementState> pElementStateList,
java.lang.Object pItemPropertyInfo)
Carry out validation on an element.
|
static final java.lang.String CLASS_VERSION
java.lang.Boolean validate(java.lang.String pElementID, java.util.Map pErrorMap, java.lang.String pElementType, java.lang.Object pRawValue, java.util.ArrayList<ElementState> pElementStateList, java.lang.Object pItemPropertyInfo) throws atg.repository.editingtemplate.TemplateException
pElementID
- the ID of the element to validatepErrorMap
- the Map to which any errors are to be added. Errors must
be added to this map as a list with the key being the element id above.pElementType
- the type of the element being validatedpRawValue
- raw value of the element being validatedpElementStateList
- this is the complete List of ElementState
objects in case we wish to base the validation of this element on the input to
another element, the ID of which we must already know.pItemPropertyInfo
- the item-property names and associated valuestrue
if validation passed, false
otherwiseatg.repository.editingtemplate.TemplateException
- if there is a problem obtaining the necessary information.