org.opensaml.xml.schema.validator
Class XSBase64BinarySchemaValidator<T extends XSBase64Binary>

java.lang.Object
  extended by org.opensaml.xml.schema.validator.XSBase64BinarySchemaValidator<T>
Type Parameters:
T - the type to be validated
All Implemented Interfaces:
Validator<T>
Direct Known Subclasses:
CryptoBinarySchemaValidator

public class XSBase64BinarySchemaValidator<T extends XSBase64Binary>
extends Object
implements Validator<T>

Checks XSBase64Binary for Schema compliance.


Constructor Summary
XSBase64BinarySchemaValidator()
          Constructor.
XSBase64BinarySchemaValidator(boolean allowEmptyElementContent)
          Constructor.
 
Method Summary
protected  boolean isAllowEmptyContent()
          Get the flag which determines whether empty content should be allowed.
 void validate(T xmlObject)
          Checks to see if a XMLObject is valid.
protected  void validateBase64BinaryContent(T xmlObject)
          Validates the content of the XSBase64Binary object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSBase64BinarySchemaValidator

public XSBase64BinarySchemaValidator(boolean allowEmptyElementContent)
Constructor.

Parameters:
allowEmptyElementContent - flag indicated whether empty content should be allowed

XSBase64BinarySchemaValidator

public XSBase64BinarySchemaValidator()
Constructor. Empty content is not allowed.

Method Detail

validate

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

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

isAllowEmptyContent

protected boolean isAllowEmptyContent()
Get the flag which determines whether empty content should be allowed.

Returns:
true if empty content should be allowed, false otherwise

validateBase64BinaryContent

protected void validateBase64BinaryContent(T xmlObject)
                                    throws ValidationException
Validates the content of the XSBase64Binary object.

Parameters:
xmlObject - the object to evaluate
Throws:
ValidationException - thrown if the content of the Base64Binary object is invalid


Copyright © 2006-2011 Internet2. All Rights Reserved.