org.opensaml.xml.encryption.validator
Class ReferenceTypeSchemaValidator

java.lang.Object
  extended by org.opensaml.xml.encryption.validator.ReferenceTypeSchemaValidator
All Implemented Interfaces:
Validator<ReferenceType>

public class ReferenceTypeSchemaValidator
extends Object
implements Validator<ReferenceType>

Checks ReferenceType for Schema compliance.


Constructor Summary
ReferenceTypeSchemaValidator()
           
 
Method Summary
 void validate(ReferenceType xmlObject)
          Checks to see if a XMLObject is valid.
protected  void validateChildrenNamespaces(ReferenceType xmlObject)
          Validate that all children are from another namespace.
protected  void validateURI(ReferenceType xmlObject)
          Validate the URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceTypeSchemaValidator

public ReferenceTypeSchemaValidator()
Method Detail

validate

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

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

validateURI

protected void validateURI(ReferenceType xmlObject)
                    throws ValidationException
Validate the URI.

Parameters:
xmlObject - the object to validate
Throws:
ValidationException - thrown if the object is invalid

validateChildrenNamespaces

protected void validateChildrenNamespaces(ReferenceType xmlObject)
                                   throws ValidationException
Validate that all children are from another namespace.

Parameters:
xmlObject - the object to validate
Throws:
ValidationException - thrown if the object is invalid


Copyright © 2006-2011 Internet2. All Rights Reserved.