Class AbstractBinder<T>

java.lang.Object
org.hibernate.boot.jaxb.internal.AbstractBinder<T>
All Implemented Interfaces:
Binder<T>
Direct Known Subclasses:
ConfigurationBinder, MappingBinder

public abstract class AbstractBinder<T> extends Object implements Binder<T>
  • Constructor Details

  • Method Details

    • 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
      Specified by:
      bind in interface Binder<T>
      Parameters:
      stream - The InputStream containing XML
      origin - The descriptor of the stream origin
      Returns:
      The bound JAXB model
    • 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.
      Specified by:
      bind in interface Binder<T>
      Parameters:
      source - The XML source.
      origin - The descriptor of the source origin
      Returns:
      The bound JAXB model
    • 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, JAXBContext jaxbContext, Origin origin)