public class JaxbUtil extends Object
| Constructor and Description |
|---|
JaxbUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
validateXml(Object obj,
Class<?>... classes) |
static void |
validateXml(Object obj,
JAXBContext jc)
Generates a schema for the JAXBContext 'jc' and validates the Object
'obj' against that schema.
|
public static void validateXml(Object obj, Class<?>... classes) throws ValidationException
ValidationExceptionpublic static void validateXml(Object obj, JAXBContext jc) throws ValidationException
obj - jc - ValidationExceptionCopyright © 2018 Zanata Project. All rights reserved.