* @param xmlObject the object to validate
* @throws ValidationException thrown if the object is invalid
*/
protected void validateChildrenPresence(DSAKeyValue xmlObject) throws ValidationException {
if (xmlObject.getY() == null) {
throw new ValidationException("DSAKeyValue did not contain a required Y value");
}
if (xmlObject.getP() != null && xmlObject.getQ() == null) {
throw new ValidationException("RSAKeyValue did contained a P value without a Q value");
} else if (xmlObject.getQ() != null && xmlObject.getP() == null) {
throw new ValidationException("RSAKeyValue did contained a Q value without a P value");
}
if (xmlObject.getPgenCounter() != null && xmlObject.getSeed() == null) {
throw new ValidationException("RSAKeyValue did contained a PgenCounter value without a Seed value");
} else if (xmlObject.getSeed() != null && xmlObject.getPgenCounter() == null) {
throw new ValidationException("RSAKeyValue did contained a Seed value without a PgenCounter value");
}
}