Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.spi

public Class Binding<T>

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, org.hibernate.boot.jaxb.Origin

Represents a JAXB binding, as well as keeping information about the origin of the processed XML
Authors
Steve Ebersole, Hardy Ferentschik

Field Summary

Modifier and TypeField and Description
private final Origin
private final T

Constructor Summary

AccessConstructor and Description
public
Binding(T root, Origin origin)

Method Summary

Modifier and TypeMethod and Description
public Origin

Returns:

The origin
getOrigin
()

Obtain the metadata about the document's origin

public T

Returns:

The JAXB root object
getRoot
()

Obtain the root JAXB bound object

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

originback to summary
private final Origin origin
rootback to summary
private final T root

Constructor Detail

Bindingback to summary
public Binding(T root, Origin origin)

Method Detail

getOriginback to summary
public Origin getOrigin()

Obtain the metadata about the document's origin

Returns:Origin

The origin

getRootback to summary
public T getRoot()

Obtain the root JAXB bound object

Returns:T

The JAXB root object