public class SchemaDataBinding extends Object implements DataBinding
| Modifier and Type | Field and Description |
|---|---|
static Class<?>[] |
FACTORIES |
static String |
FILENAME_SCHEMA_CHAIN_ROOT |
static Class<?> |
RESOURCE_CLASS |
| Constructor and Description |
|---|
SchemaDataBinding(BindingValidationEventHandler validationEventHandler) |
| Modifier and Type | Method and Description |
|---|---|
Class<?>[] |
getObjectFactories() |
BindingValidationEventHandler |
getValidationEventHandler() |
String |
marshal(Object root) |
void |
marshal(Object root,
OutputStream stream) |
void |
marshal(Object root,
OutputStream stream,
boolean formattedOutput) |
Object |
unmarshal(InputStream stream) |
Object |
unmarshal(Reader reader) |
Object |
unmarshal(Source source) |
Object |
unmarshal(String xml) |
Object |
validate(InputStream xml) |
Object |
validate(String xml) |
public static String FILENAME_SCHEMA_CHAIN_ROOT
public static Class<?> RESOURCE_CLASS
public static Class<?>[] FACTORIES
public SchemaDataBinding(BindingValidationEventHandler validationEventHandler) throws JAXBException, SAXException
JAXBExceptionSAXExceptionpublic Class<?>[] getObjectFactories()
public String marshal(Object root) throws JAXBException
marshal in interface DataBindingJAXBExceptionpublic void marshal(Object root, OutputStream stream) throws JAXBException
JAXBExceptionpublic void marshal(Object root, OutputStream stream, boolean formattedOutput) throws JAXBException
JAXBExceptionpublic Object unmarshal(String xml) throws JAXBException
unmarshal in interface DataBindingJAXBExceptionpublic Object unmarshal(Reader reader) throws JAXBException
JAXBExceptionpublic Object unmarshal(Source source) throws JAXBException
JAXBExceptionpublic Object unmarshal(InputStream stream) throws JAXBException
unmarshal in interface DataBindingJAXBExceptionpublic Object validate(String xml) throws JAXBException
validate in interface DataBindingJAXBExceptionpublic Object validate(InputStream xml) throws JAXBException, UnmarshalException
validate in interface DataBindingJAXBExceptionUnmarshalExceptionpublic BindingValidationEventHandler getValidationEventHandler() throws JAXBException
getValidationEventHandler in interface DataBindingJAXBExceptionCopyright © 2017. All rights reserved.