| Modifier and Type | Field and Description |
|---|---|
private static Set<QName> |
VALID_DS_CHILD_NAMES
QNames corresponding to the valid children.
|
| Constructor and Description |
|---|
PGPDataSchemaValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected static Set<QName> |
getValidDSChildNames()
Get the QNames corresponding to the valid children
defined in the XML Signature namespace.
|
void |
validate(PGPData xmlObject)
Checks to see if a XMLObject is valid.
|
protected void |
validateChildrenNamespaces(PGPData xmlObject)
Validate that all children are either ones defined within the XML Signature schema,
or are from another namespace.
|
protected void |
validateChildrenPresence(PGPData xmlObject)
Validate that at least one mandatory child is present.
|
public void validate(PGPData xmlObject) throws ValidationException
validate in interface Validator<PGPData>xmlObject - the XMLObject to validateValidationException - thrown if the element is not validprotected static Set<QName> getValidDSChildNames()
protected void validateChildrenPresence(PGPData xmlObject) throws ValidationException
xmlObject - the object to validateValidationException - thrown if the object is invalidprotected void validateChildrenNamespaces(PGPData xmlObject) throws ValidationException
xmlObject - the object to validateValidationException - thrown if the object is invalidCopyright © 1999-2014. All Rights Reserved.