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
ValidationException
public static void validateXml(Object obj, JAXBContext jc) throws ValidationException
obj
- jc
- ValidationException
Copyright © 2014 Zanata Project. All rights reserved.