org.opensaml.saml2.core.validator
Class AuthzDecisionStatementSchemaValidator

java.lang.Object
  extended by org.opensaml.saml2.core.validator.AuthzDecisionStatementSchemaValidator
All Implemented Interfaces:
Validator<AuthzDecisionStatement>

public class AuthzDecisionStatementSchemaValidator
extends java.lang.Object
implements Validator<AuthzDecisionStatement>

Checks AuthzDecisionStatement for Schema compliance.


Constructor Summary
AuthzDecisionStatementSchemaValidator()
          Constructor
 
Method Summary
 void validate(AuthzDecisionStatement authzDS)
          Checks to see if a XMLObject is valid.
protected  void validateActions(AuthzDecisionStatement authzDS)
          Checks that one or more Action is present.
protected  void validateDecision(AuthzDecisionStatement authzDS)
          Checks that the Decision attribute is present.
protected  void validateResource(AuthzDecisionStatement authzDS)
          Checks that the Resource attribute is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthzDecisionStatementSchemaValidator

public AuthzDecisionStatementSchemaValidator()
Constructor

Method Detail

validate

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

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

validateResource

protected void validateResource(AuthzDecisionStatement authzDS)
                         throws ValidationException
Checks that the Resource attribute is present.

Parameters:
authzDS -
Throws:
ValidationException

validateDecision

protected void validateDecision(AuthzDecisionStatement authzDS)
                         throws ValidationException
Checks that the Decision attribute is present.

Parameters:
authzDS -
Throws:
ValidationException

validateActions

protected void validateActions(AuthzDecisionStatement authzDS)
                        throws ValidationException
Checks that one or more Action is present.

Parameters:
authzDS -
Throws:
ValidationException