Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.property

public final Class UnmarshallerChain

extends Object
Class Inheritance
Imports
org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl, org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Scope

Pass around a 'ticket dispenser' when creating new unmarshallers. This controls the index of the slot allocated to the chain of handlers.

A ticket dispenser also maintains the offset for handlers to access state slots. A handler records this value when it's created.

Field Summary

Modifier and TypeField and Description
public final JAXBContextImpl
private int
offset

This offset allows child unmarshallers to have its own Scope without colliding with siblings.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
allocateOffset()

Allocates a new Scope offset.

public int
getScopeSize()

Gets the number of total scope offset allocated.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
public final JAXBContextImpl context
offsetback to summary
private int offset

This offset allows child unmarshallers to have its own Scope without colliding with siblings.

Constructor Detail

UnmarshallerChainback to summary
public UnmarshallerChain(JAXBContextImpl context)

Method Detail

allocateOffsetback to summary
public int allocateOffset()

Allocates a new Scope offset.

getScopeSizeback to summary
public int getScopeSize()

Gets the number of total scope offset allocated.