public class AffiliationDescriptorSchemaValidator extends Object implements Validator<AffiliationDescriptor>
AffiliationDescriptor
for Schema compliance.Constructor and Description |
---|
AffiliationDescriptorSchemaValidator()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
validate(AffiliationDescriptor affiliationDescriptor)
Checks to see if a XMLObject is valid.
|
protected void |
validateMember(AffiliationDescriptor affiliationDescriptor)
Checks that at least one Member is present.
|
protected void |
validateOwner(AffiliationDescriptor affiliationDescriptor)
Checks that OwnerID is present and valid.
|
public AffiliationDescriptorSchemaValidator()
public void validate(AffiliationDescriptor affiliationDescriptor) throws ValidationException
validate
in interface Validator<AffiliationDescriptor>
affiliationDescriptor
- the XMLObject to validateValidationException
- thrown if the element is not validprotected void validateOwner(AffiliationDescriptor affiliationDescriptor) throws ValidationException
affiliationDescriptor
- ValidationException
protected void validateMember(AffiliationDescriptor affiliationDescriptor) throws ValidationException
affiliationDescriptor
- ValidationException
Copyright © 2018 JBoss by Red Hat. All rights reserved.