XMLTooling-J 1.3.2-redhat-4

org.opensaml.xml.schema.validator
Class XSDateTimeSchemaValidator<T extends XSDateTime>

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

public class XSDateTimeSchemaValidator<T extends XSDateTime>
extends Object
implements Validator<T>

Checks XSDateTime for Schema compliance.


Constructor Summary
XSDateTimeSchemaValidator()
          Constructor.
XSDateTimeSchemaValidator(boolean allowEmptyContent)
          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 validateDateTimeContent(T xmlObject)
          Validates the content of the XSDateTime object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSDateTimeSchemaValidator

public XSDateTimeSchemaValidator(boolean allowEmptyContent)
Constructor.

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

XSDateTimeSchemaValidator

public XSDateTimeSchemaValidator()
Constructor.

Method Detail

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

validate

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

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

validateDateTimeContent

protected void validateDateTimeContent(T xmlObject)
                                throws ValidationException
Validates the content of the XSDateTime object.

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

XMLTooling-J 1.3.2-redhat-4

Copyright © 2006-2013 Internet2. All Rights Reserved.