org.opensaml.saml2.metadata.validator
Class EntityDescriptorSchemaValidator

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

public class EntityDescriptorSchemaValidator
extends java.lang.Object
implements Validator<EntityDescriptor>

Checks EntityDescriptor for Schema compliance.


Constructor Summary
EntityDescriptorSchemaValidator()
          Constructor
 
Method Summary
 void validate(EntityDescriptor entityDescriptor)
          Checks to see if a XMLObject is valid.
protected  void validateDescriptors(EntityDescriptor entityDescriptor)
          Checks that an AffiliationDescriptor OR one or more RoleDescriptors are present.
protected  void validateEntityID(EntityDescriptor entityDescriptor)
          Checks that EntityID is present and valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityDescriptorSchemaValidator

public EntityDescriptorSchemaValidator()
Constructor

Method Detail

validate

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

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

validateEntityID

protected void validateEntityID(EntityDescriptor entityDescriptor)
                         throws ValidationException
Checks that EntityID is present and valid.

Parameters:
entityDescriptor -
Throws:
ValidationException

validateDescriptors

protected void validateDescriptors(EntityDescriptor entityDescriptor)
                            throws ValidationException
Checks that an AffiliationDescriptor OR one or more RoleDescriptors are present.

Parameters:
entityDescriptor -
Throws:
ValidationException