Interface Binder<T>

All Known Implementing Classes:
AbstractBinder, ConfigurationBinder, MappingBinder

public interface Binder<T>
Contract for performing JAXB binding.
  • Method Summary

    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.
  • Method Details

    • bind

      <X extends T> Binding<X> bind(Source source, Origin origin)
      Bind from an XML source.
      Parameters:
      source - The XML source.
      origin - The descriptor of the source origin
      Returns:
      The bound JAXB model
    • bind

      <X extends T> Binding<X> bind(InputStream stream, Origin origin)
      Bind from an InputStream
      Parameters:
      stream - The InputStream containing XML
      origin - The descriptor of the stream origin
      Returns:
      The bound JAXB model