org.opensaml.xml.schema.validator
Class XSIntegerSchemaValidator<T extends XSInteger>

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

public class XSIntegerSchemaValidator<T extends XSInteger>
extends java.lang.Object
implements Validator<T>

Checks XSInteger for Schema compliance.


Constructor Summary
XSIntegerSchemaValidator()
          Constructor.
XSIntegerSchemaValidator(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 validateIntegerContent(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

XSIntegerSchemaValidator

public XSIntegerSchemaValidator(boolean allowEmptyElementContent)
Constructor.

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

XSIntegerSchemaValidator

public XSIntegerSchemaValidator()
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 XSInteger>
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

validateIntegerContent

protected void validateIntegerContent(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-2012 Internet2. All Rights Reserved.