public abstract class AbstractBinder extends Object implements Binder
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinder(ClassLoaderService classLoaderService) |
protected |
AbstractBinder(ClassLoaderService classLoaderService,
boolean validateXml) |
Modifier and Type | Method and Description |
---|---|
Binding |
bind(InputStream stream,
Origin origin)
Bind from an InputStream
|
Binding |
bind(Source source,
Origin origin)
Bind from an XML source.
|
protected XMLEventReader |
createReader(InputStream stream,
Origin origin) |
protected XMLEventReader |
createReader(Source source,
Origin origin) |
protected abstract Binding |
doBind(XMLEventReader staxEventReader,
StartElement rootElementStartEvent,
Origin origin) |
protected static boolean |
hasNamespace(StartElement startElement) |
boolean |
isValidationEnabled() |
protected <T> T |
jaxb(XMLEventReader reader,
Schema xsd,
JAXBContext jaxbContext,
Origin origin) |
protected StartElement |
seekRootElementStartEvent(XMLEventReader staxEventReader,
Origin origin) |
protected AbstractBinder(ClassLoaderService classLoaderService)
protected AbstractBinder(ClassLoaderService classLoaderService, boolean validateXml)
public boolean isValidationEnabled()
public Binding bind(InputStream stream, Origin origin)
Binder
protected XMLEventReader createReader(InputStream stream, Origin origin)
public Binding bind(Source source, Origin origin)
Binder
protected XMLEventReader createReader(Source source, Origin origin)
protected StartElement seekRootElementStartEvent(XMLEventReader staxEventReader, Origin origin)
protected abstract Binding doBind(XMLEventReader staxEventReader, StartElement rootElementStartEvent, Origin origin)
protected static boolean hasNamespace(StartElement startElement)
protected <T> T jaxb(XMLEventReader reader, Schema xsd, JAXBContext jaxbContext, Origin origin)
Copyright © 2021 JBoss by Red Hat. All rights reserved.