biz.c24.io.api.data
Class XsltValidator
java.lang.Object
biz.c24.io.api.data.DefaultValidationRule
biz.c24.io.api.data.XsltValidator
- All Implemented Interfaces:
- ModelComponent, ValidationRule, Validator, Serializable
- Direct Known Subclasses:
- SwdmlValidator
public abstract class XsltValidator
- extends DefaultValidationRule
Validator which runs an XSLT over the Complex Data Object and exposes the output as a DOM for subclasses to interpret.
- See Also:
- Serialized Form
Methods inherited from class biz.c24.io.api.data.DefaultValidationRule |
addDependentPredicateCode, getAnnotation, getContextForPredicateChecking, getDependentPredicateCode, getDependentPredicateCodeCount, getErrorCode, getName, getPredicateCode, getSeverity, removeDependentPredicateCode, setAnnotation, setErrorCode, setName, setPredicateCode, setSeverity, toString |
XsltValidator
public XsltValidator(String name)
createSource
protected abstract Source createSource()
createResult
protected abstract Result createResult(net.sf.saxon.Configuration config,
DocumentNode rootNode,
ComplexDataObject rootObject,
List errors)
validate
public boolean validate(Object object,
DataComponent component,
ComplexDataObject context,
ValidationManager manager)
throws ValidationException
- Description copied from interface:
Validator
- Validate the given object.
- Specified by:
validate
in interface Validator
- Overrides:
validate
in class DefaultValidationRule
- Parameters:
object
- The object to be validated - commonly a String, Integer, Double, Date etc.component
- The Element
or Attribute
inside context
which defines object
.context
- The parent of object
- could be null
.manager
- The validation manager which is performing this validation.
- Returns:
- Whether the object is valid if the validation manager is not operating in exception mode.
- Throws:
ValidationException
- If the object is not valid and the validation maanger is operating in exception mode.
C24 Technologies © 2002-2012: All Rights Reserved.