atg.remote.promotion.template.validators
Interface Validator
- public interface Validator 
| Field Summary | 
| static java.lang.String | CLASS_VERSIONClass 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 validate
- pErrorMap- 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 validated
- pRawValue- raw value of the element being validated
- pElementStateList- this is the complete List of- ElementStateobjects 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:
- trueif validation passed,- falseotherwise
- Throws:
- atg.repository.editingtemplate.TemplateException- if there is a problem obtaining the necessary information.