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