org.opensaml.saml2.core.validator
Class AttributeQuerySchemaValidator

java.lang.Object
  extended by org.opensaml.saml2.core.validator.RequestAbstractTypeSchemaValidator<SubjectQueryType>
      extended by org.opensaml.saml2.core.validator.SubjectQuerySchemaValidator<AttributeQuery>
          extended by org.opensaml.saml2.core.validator.AttributeQuerySchemaValidator
All Implemented Interfaces:
Validator<AttributeQuery>

public class AttributeQuerySchemaValidator
extends SubjectQuerySchemaValidator<AttributeQuery>

Checks AttributeQuery for Schema compliance.


Constructor Summary
AttributeQuerySchemaValidator()
          Constructor
 
Method Summary
 void validate(AttributeQuery query)
          Checks to see if a XMLObject is valid.
protected  void validateUniqueAttributeIdentifiers(AttributeQuery query)
          Checks that all the attributes have a unique Name/NameFormat pair.
 
Methods inherited from class org.opensaml.saml2.core.validator.SubjectQuerySchemaValidator
validateSubject
 
Methods inherited from class org.opensaml.saml2.core.validator.RequestAbstractTypeSchemaValidator
validateID, validateIssueInstant, validateVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeQuerySchemaValidator

public AttributeQuerySchemaValidator()
Constructor

Method Detail

validate

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

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

validateUniqueAttributeIdentifiers

protected void validateUniqueAttributeIdentifiers(AttributeQuery query)
                                           throws ValidationException
Checks that all the attributes have a unique Name/NameFormat pair.

Parameters:
query - the attribute query to validate
Throws:
ValidationException - thrown if more than on Name/NameFormat pair is found in the list of attributes in this query