atg.remote.promotion.template.validators
Interface Validator
public interface Validator
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Method Summary |
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. |
CLASS_VERSION
static final java.lang.String CLASS_VERSION
- Class version string
- See Also:
- Constant Field Values
validate
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
- Carry out validation on an element.
- Parameters:
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 values
- Returns:
true
if validation passed, false
otherwise
- Throws:
atg.repository.editingtemplate.TemplateException
- if there is a problem obtaining the necessary information.