public class ContactPersonSchemaValidator extends Object implements Validator<ContactPerson>
ContactPerson
for Schema compliance.Constructor and Description |
---|
ContactPersonSchemaValidator()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
validate(ContactPerson contactPerson)
Checks to see if a XMLObject is valid.
|
protected void |
validateType(ContactPerson contactPerson)
Checks that Type is present.
|
public void validate(ContactPerson contactPerson) throws ValidationException
validate
in interface Validator<ContactPerson>
contactPerson
- the XMLObject to validateValidationException
- thrown if the element is not validprotected void validateType(ContactPerson contactPerson) throws ValidationException
contactPerson
- ValidationException
Copyright © 2018 JBoss by Red Hat. All rights reserved.