public class Validator extends Object implements ClassValidator
Modifier and Type | Field and Description |
---|---|
protected static ResourceBundle |
resourceBundle
resource bundle
|
Constructor and Description |
---|
Validator()
Creates a new Validator.
|
Modifier and Type | Method and Description |
---|---|
void |
checkUnresolvedIdrefs(ValidationContext context) |
void |
validate(Object object)
Validates the given Object.
|
void |
validate(Object object,
ValidationContext context)
Validates the given Object.
|
protected static ResourceBundle resourceBundle
public void validate(Object object) throws ValidationException
object
- the Object to validateValidationException
- if validation fails.public void validate(Object object, ValidationContext context) throws ValidationException
validate
in interface TypeValidator
validate
in interface ClassValidator
object
- the Object to validatecontext
- the ValidationContext to use during validation.ValidationException
- if validation fails.public void checkUnresolvedIdrefs(ValidationContext context) throws ValidationException
ValidationException
Copyright © 2016. All rights reserved.