T - Java type representing the content to be validatedpublic interface Validator<T>
| Modifier and Type | Method and Description |
|---|---|
QName |
getName()
Return the name of the subject for validation.
|
Class<T> |
getType()
Return the Java type of the content to be validated.
|
Validator<T> |
setName(QName name)
Set the name of the subject for validation.
|
ValidationResult |
validate(T content)
Validates the content.
|
ValidationResult validate(T content)
T.content - the content to be validatedValidator<T> setName(QName name)
name - name of the subject for validation.QName getName()
Copyright © 2013-2014 JBoss by Red Hat. All Rights Reserved.