org.opensaml.saml2.metadata.validator
Class ServiceDescriptionSchemaValidator

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

public class ServiceDescriptionSchemaValidator
extends java.lang.Object
implements Validator<ServiceDescription>

Checks ServiceDescription for Schema compliance.


Constructor Summary
ServiceDescriptionSchemaValidator()
          Constructor
 
Method Summary
 void validate(ServiceDescription serviceDescription)
          Checks to see if a XMLObject is valid.
protected  void validateDescription(ServiceDescription serviceDescription)
          Checks that Description is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDescriptionSchemaValidator

public ServiceDescriptionSchemaValidator()
Constructor

Method Detail

validate

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

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

validateDescription

protected void validateDescription(ServiceDescription serviceDescription)
                            throws ValidationException
Checks that Description is present.

Parameters:
serviceDescription -
Throws:
ValidationException