org.opensaml.saml2.metadata.validator
Class TelephoneNumberSchemaValidator

java.lang.Object
  extended by org.opensaml.saml2.metadata.validator.TelephoneNumberSchemaValidator
All Implemented Interfaces:
Validator<TelephoneNumber>

public class TelephoneNumberSchemaValidator
extends java.lang.Object
implements Validator<TelephoneNumber>

Checks TelephoneNumber for Schema compliance.


Constructor Summary
TelephoneNumberSchemaValidator()
          Constructor
 
Method Summary
 void validate(TelephoneNumber telephoneNumber)
          Checks to see if a XMLObject is valid.
protected  void validateNumber(TelephoneNumber telephoneNumber)
          Checks that Number is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelephoneNumberSchemaValidator

public TelephoneNumberSchemaValidator()
Constructor

Method Detail

validate

public void validate(TelephoneNumber telephoneNumber)
              throws ValidationException
Checks to see if a XMLObject is valid.

Specified by:
validate in interface Validator<TelephoneNumber>
Parameters:
telephoneNumber - the XMLObject to validate
Throws:
ValidationException - thrown if the element is not valid

validateNumber

protected void validateNumber(TelephoneNumber telephoneNumber)
                       throws ValidationException
Checks that Number is present.

Parameters:
telephoneNumber -
Throws:
ValidationException