org.opensaml.xml.signature.validator
Class KeyValueSchemaValidator

java.lang.Object
  extended by org.opensaml.xml.signature.validator.KeyValueSchemaValidator
All Implemented Interfaces:
Validator<KeyValue>

public class KeyValueSchemaValidator
extends Object
implements Validator<KeyValue>

Checks KeyValue for Schema compliance.


Constructor Summary
KeyValueSchemaValidator()
           
 
Method Summary
 void validate(KeyValue xmlObject)
          Checks to see if a XMLObject is valid.
protected  void validateChildrenPresence(KeyValue xmlObject)
          Validate that exactly one child is present.
protected  void validateExtensionChildNamespace(KeyValue xmlObject)
          Validate that the extension child, if present, is from another namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValueSchemaValidator

public KeyValueSchemaValidator()
Method Detail

validate

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

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

validateChildrenPresence

protected void validateChildrenPresence(KeyValue xmlObject)
                                 throws ValidationException
Validate that exactly one child is present.

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

validateExtensionChildNamespace

protected void validateExtensionChildNamespace(KeyValue xmlObject)
                                        throws ValidationException
Validate that the extension child, if present, is from another namespace.

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


Copyright © 1999-2013. All Rights Reserved.