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 Object
implements Validator<StatusCode>

Checks StatusCode for Schema compliance.


Constructor Summary
StatusCodeSchemaValidator()
           
 
Method Summary
 void validate(StatusCode statusCode)
          
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.
 
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

Specified by:
validate in interface Validator<StatusCode>
Throws:
ValidationException

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

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


Copyright © 1999-2013. All Rights Reserved.