org.opensaml.xml.encryption.validator
Class EncryptionPropertySchemaValidator

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

public class EncryptionPropertySchemaValidator
extends Object
implements Validator<EncryptionProperty>

Checks EncryptionProperty for Schema compliance.


Constructor Summary
EncryptionPropertySchemaValidator()
           
 
Method Summary
 void validate(EncryptionProperty xmlObject)
          Checks to see if a XMLObject is valid.
protected  void validateAttributeNamespaces(EncryptionProperty xmlObject)
          Validate that any wildcard attributes are from the XML namespace http://www.w3.org/XML/1998/namespace.
protected  void validateChildrenNamespaces(EncryptionProperty xmlObject)
          Validate that all children are from another namespace.
protected  void validateUnknownChildren(EncryptionProperty xmlObject)
          Validate the unknown children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionPropertySchemaValidator

public EncryptionPropertySchemaValidator()
Method Detail

validate

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

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

validateUnknownChildren

protected void validateUnknownChildren(EncryptionProperty xmlObject)
                                throws ValidationException
Validate the unknown children.

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

validateChildrenNamespaces

protected void validateChildrenNamespaces(EncryptionProperty 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

validateAttributeNamespaces

protected void validateAttributeNamespaces(EncryptionProperty xmlObject)
                                    throws ValidationException
Validate that any wildcard attributes are from the XML namespace http://www.w3.org/XML/1998/namespace.

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


Copyright © 1999-2013. All Rights Reserved.