org.opensaml.saml2.metadata.validator
Class AttributeAuthorityDescriptorSchemaValidator

java.lang.Object
  extended by org.opensaml.saml2.metadata.validator.RoleDescriptorSchemaValidator<AttributeAuthorityDescriptor>
      extended by org.opensaml.saml2.metadata.validator.AttributeAuthorityDescriptorSchemaValidator
All Implemented Interfaces:
Validator<AttributeAuthorityDescriptor>

public class AttributeAuthorityDescriptorSchemaValidator
extends RoleDescriptorSchemaValidator<AttributeAuthorityDescriptor>

Checks AttributeAuthorityDescriptor for Schema compliance.


Constructor Summary
AttributeAuthorityDescriptorSchemaValidator()
          Constructor
 
Method Summary
 void validate(AttributeAuthorityDescriptor attributeAuthorityDescriptor)
          Checks to see if a XMLObject is valid.
protected  void validateAttributeServices(AttributeAuthorityDescriptor attributeAuthorityDescriptor)
          Checks that at least one AttributeService is present.
 
Methods inherited from class org.opensaml.saml2.metadata.validator.RoleDescriptorSchemaValidator
validateProtocols
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeAuthorityDescriptorSchemaValidator

public AttributeAuthorityDescriptorSchemaValidator()
Constructor

Method Detail

validate

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

Specified by:
validate in interface Validator<AttributeAuthorityDescriptor>
Overrides:
validate in class RoleDescriptorSchemaValidator<AttributeAuthorityDescriptor>
Parameters:
attributeAuthorityDescriptor - the XMLObject to validate
Throws:
ValidationException - thrown if the element is not valid

validateAttributeServices

protected void validateAttributeServices(AttributeAuthorityDescriptor attributeAuthorityDescriptor)
                                  throws ValidationException
Checks that at least one AttributeService is present.

Parameters:
attributeAuthorityDescriptor -
Throws:
ValidationException