org.opensaml.saml1.core.validator
Class StatusCodeSchemaValidator

java.lang.Object
  extended by org.opensaml.saml1.core.validator.StatusCodeSchemaValidator
All Implemented Interfaces:
Validator<StatusCode>

public class StatusCodeSchemaValidator
extends java.lang.Object
implements Validator<StatusCode>

Checks StatusCode for Schema compliance.


Constructor Summary
StatusCodeSchemaValidator()
           
 
Method Summary
 void validate(StatusCode statusCode)
          Checks to see if a XMLObject is valid.
protected  void validateValue(StatusCode statusCode)
          Validates that the status code has a value.
protected  void validateValueContent(StatusCode statusCode)
          Validates that the status code local name is one of the allowabled values.
protected  void validateValueQNameNamespace(StatusCode statusCode)
          Validates that the status code value is not in the SAML 1 namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusCodeSchemaValidator

public StatusCodeSchemaValidator()
Method Detail

validate

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

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

validateValue

protected void validateValue(StatusCode statusCode)
                      throws ValidationException
Validates that the status code has a value.

Parameters:
statusCode - status code to validate
Throws:
ValidationException - thrown if the status code does not have a value

validateValueQNameNamespace

protected void validateValueQNameNamespace(StatusCode statusCode)
                                    throws ValidationException
Validates that the status code value is not in the SAML 1 namespace.

Parameters:
statusCode - status code to validate
Throws:
ValidationException - thrown if the status code is in the SAML 1 namespace

validateValueContent

protected void validateValueContent(StatusCode statusCode)
                             throws ValidationException
Validates that the status code local name is one of the allowabled values.

Parameters:
statusCode - the status code to validate
Throws:
ValidationException - thrown if the status code local name is not an allowed value