org.opensaml.saml1.core.validator
Class SubjectStatementSchemaValidator<SubjectStatementType extends SubjectStatement>

java.lang.Object
  extended by org.opensaml.saml1.core.validator.SubjectStatementSchemaValidator<SubjectStatementType>
All Implemented Interfaces:
Validator<SubjectStatementType>
Direct Known Subclasses:
AttributeStatementSchemaValidator, AuthenticationStatementSchemaValidator, AuthorizationDecisionStatementSchemaValidator

public class SubjectStatementSchemaValidator<SubjectStatementType extends SubjectStatement>
extends java.lang.Object
implements Validator<SubjectStatementType>

Checks SubjectStatement for Schema compliance.


Constructor Summary
SubjectStatementSchemaValidator()
           
 
Method Summary
 void validate(SubjectStatementType subjectStatement)
          Checks to see if a XMLObject is valid.
protected  void validateSubject(SubjectStatementType subjectStatement)
          Validates that the statement has a subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectStatementSchemaValidator

public SubjectStatementSchemaValidator()
Method Detail

validate

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

Specified by:
validate in interface Validator<SubjectStatementType extends SubjectStatement>
Parameters:
subjectStatement - the XMLObject to validate
Throws:
ValidationException - thrown if the element is not valid

validateSubject

protected void validateSubject(SubjectStatementType subjectStatement)
                        throws ValidationException
Validates that the statement has a subject.

Parameters:
subjectStatement - statement to validate
Throws:
ValidationException - thrown if the statement does not have a subject