public interface ValidatingXMLObject extends XMLObject
Modifier and Type | Method and Description |
---|---|
void |
deregisterValidator(Validator validator)
Deregisters a validator for this XMLObject.
|
List<Validator> |
getValidators()
Gets the list of validators for this XMLObject or null if there is no list.
|
void |
registerValidator(Validator validator)
Registers a validator for this XMLObject.
|
void |
validate(boolean validateDescendants)
Validates this XMLObject against all registered validators.
|
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
List<Validator> getValidators()
void registerValidator(Validator validator)
validator
- the validatorvoid deregisterValidator(Validator validator)
validator
- the validatorvoid validate(boolean validateDescendants) throws ValidationException
validateDescendants
- true if all the descendants of this object should
be validated as well, false if notValidationException
- thrown if the element is not validCopyright © 2018 JBoss by Red Hat. All rights reserved.