public abstract class AbstractValidatingSignableXMLObject extends AbstractSignableXMLObject implements ValidatingXMLObject
AbstractSignableXMLObject
that implements
ValidatingXMLObject
.修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractValidatingSignableXMLObject(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
protected void |
validateChildren(XMLObject xmlObject)
Recursive method used to validate all the children of the given XMLObject that implement
ValidatingXMLObject . |
getSignature, isSigned, setSignature
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
protected AbstractValidatingSignableXMLObject(String namespaceURI, String elementLocalName, String namespacePrefix)
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespacepublic List<Validator> getValidators()
getValidators
インタフェース内 ValidatingXMLObject
public void registerValidator(Validator validator)
registerValidator
インタフェース内 ValidatingXMLObject
validator
- the validatorpublic void deregisterValidator(Validator validator)
deregisterValidator
インタフェース内 ValidatingXMLObject
validator
- the validatorpublic void validate(boolean validateDescendants) throws ValidationException
validate
インタフェース内 ValidatingXMLObject
validateDescendants
- true if all the descendants of this object should
be validated as well, false if notValidationException
- thrown if the element is not validprotected void validateChildren(XMLObject xmlObject) throws ValidationException
ValidatingXMLObject
. Note, this can be a very expensive operation.xmlObject
- xmlObject whose descendants should be validatedValidationException
- thrown if one of the child objects do not validateCopyright © 2012. All Rights Reserved.