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 classAbstractBinder<T>extendsObjectimplementsBinder<T>
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBinder(ResourceStreamLocator resourceStreamLocator)
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <X extendsT>
Binding<X>bind(InputStream stream,Origin origin)Bind from an InputStream<X extendsT>
Binding<X>bind(Source source,Origin origin)Bind from an XML source.protectedXMLEventReadercreateReader(InputStream stream,Origin origin)protectedXMLEventReadercreateReader(Source source,Origin origin)protected abstract <X extendsT>
Binding<X>doBind(XMLEventReader staxEventReader,StartElement rootElementStartEvent,Origin origin)protected static booleanhasNamespace(StartElement startElement)abstract booleanisValidationEnabled()protected <X extendsT>
Xjaxb(XMLEventReader reader,Schema xsd,JAXBContext jaxbContext,Origin origin)protectedStartElementseekRootElementStartEvent(XMLEventReader staxEventReader,Origin origin)
Constructor Detail
AbstractBinder
protected AbstractBinder(ResourceStreamLocator resourceStreamLocator)
Method Detail
isValidationEnabled
public abstract boolean isValidationEnabled()
bind
public <X extendsT> Binding<X> bind(InputStream stream,Origin origin)
Description copied from interface:BinderBind from an InputStream
createReader
protected XMLEventReader createReader(InputStream stream,Origin origin)
bind
public <X extendsT> Binding<X> bind(Source source,Origin origin)
Description copied from interface:BinderBind from an XML source.
createReader
protected XMLEventReader createReader(Source source,Origin origin)
seekRootElementStartEvent
protected StartElement seekRootElementStartEvent(XMLEventReader staxEventReader,Origin origin)
doBind
protected abstract <X extendsT> Binding<X> doBind(XMLEventReader staxEventReader,StartElement rootElementStartEvent,Origin origin)
hasNamespace
protected static boolean hasNamespace(StartElement startElement)
jaxb
protected <X extendsT> X jaxb(XMLEventReader reader,Schema xsd,JAXBContext jaxbContext,Origin origin)