T - the type to be validatedpublic class XSDateTimeSchemaValidator<T extends XSDateTime> extends Object implements Validator<T>
XSDateTime for Schema compliance.| Modifier and Type | Field and Description |
|---|---|
private boolean |
allowEmptyContent
Flag specifying whether empty element content should be allowed.
|
| Constructor and Description |
|---|
XSDateTimeSchemaValidator()
Constructor.
|
XSDateTimeSchemaValidator(boolean allowEmptyContent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private boolean allowEmptyContent
public XSDateTimeSchemaValidator(boolean allowEmptyContent)
allowEmptyContent - flag indicated whether empty content should be allowedpublic XSDateTimeSchemaValidator()
protected boolean isAllowEmptyContent()
public void validate(T xmlObject) throws ValidationException
validate in interface Validator<T extends XSDateTime>xmlObject - the XMLObject to validateValidationException - thrown if the element is not validprotected void validateDateTimeContent(T xmlObject) throws ValidationException
xmlObject - the object to evaluateValidationException - thrown if the content of the object is invalidCopyright © 1999-2015. All Rights Reserved.