Package org.hibernate.boot.jaxb.internal
Class AbstractBinder<T>
- java.lang.Object
-
- org.hibernate.boot.jaxb.internal.AbstractBinder<T>
-
- All Implemented Interfaces:
Binder<T>
- Direct Known Subclasses:
MappingBinder
public abstract class AbstractBinder<T> extends Object implements Binder<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBinder(ResourceStreamLocator resourceStreamLocator)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <X extends T>
Binding<X>bind(InputStream stream, Origin origin)
Bind from an InputStream<X extends T>
Binding<X>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 <X extends T>
Binding<X>doBind(XMLEventReader staxEventReader, StartElement rootElementStartEvent, Origin origin)
protected static boolean
hasNamespace(StartElement startElement)
abstract boolean
isValidationEnabled()
protected <X extends T>
Xjaxb(XMLEventReader reader, Schema xsd, jakarta.xml.bind.JAXBContext jaxbContext, Origin origin)
protected StartElement
seekRootElementStartEvent(XMLEventReader staxEventReader, Origin origin)
-
-
-
Constructor Detail
-
AbstractBinder
protected AbstractBinder(ResourceStreamLocator resourceStreamLocator)
-
-
Method Detail
-
isValidationEnabled
public abstract boolean isValidationEnabled()
-
bind
public <X extends T> Binding<X> bind(InputStream stream, Origin origin)
Description copied from interface:Binder
Bind from an InputStream
-
createReader
protected XMLEventReader createReader(InputStream stream, Origin origin)
-
bind
public <X extends T> Binding<X> bind(Source source, Origin origin)
Description copied from interface:Binder
Bind from an XML source.
-
createReader
protected XMLEventReader createReader(Source source, Origin origin)
-
seekRootElementStartEvent
protected StartElement seekRootElementStartEvent(XMLEventReader staxEventReader, Origin origin)
-
doBind
protected abstract <X extends T> Binding<X> doBind(XMLEventReader staxEventReader, StartElement rootElementStartEvent, Origin origin)
-
hasNamespace
protected static boolean hasNamespace(StartElement startElement)
-
jaxb
protected <X extends T> X jaxb(XMLEventReader reader, Schema xsd, jakarta.xml.bind.JAXBContext jaxbContext, Origin origin)
-
-