Top Description Fields Constructors Methods
com.amazon.ion.impl.lite

pack-priv Class ContainerlessContext

extends Object
implements IonContext
Class Inheritance
All Implemented Interfaces
com.amazon.ion.impl.lite.IonContext
Imports
com.amazon.ion.SymbolTable

Context for IonValues that are not contained in any Container or Datagram

Field Summary

Modifier and TypeField and Description
private final SymbolTable
private final IonSystemLite

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public IonContainerLite
getContextContainer()

Implements com.amazon.ion.impl.lite.IonContext.getContextContainer.

Return the container of values associated with this context.

public SymbolTable
getContextSymbolTable()

Implements com.amazon.ion.impl.lite.IonContext.getContextSymbolTable.

Returns the symbol table that is directly assigned to this context.

public IonSystemLite
getSystem()

Implements com.amazon.ion.impl.lite.IonContext.getSystem.

Get the IonSystem concrete object that created the IonValue that is associated with this context.

public static ContainerlessContext
public static ContainerlessContext
wrap(IonSystemLite system, SymbolTable symbols)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_symbolsback to summary
private final SymbolTable _symbols
_systemback to summary
private final IonSystemLite _system

Constructor Detail

ContainerlessContextback to summary
private ContainerlessContext(IonSystemLite system, SymbolTable symbols)

Method Detail

getContextContainerback to summary
public IonContainerLite getContextContainer()

Implements com.amazon.ion.impl.lite.IonContext.getContextContainer.

Doc from com.amazon.ion.impl.lite.IonContext.getContextContainer.

Return the container of values associated with this context. If this context is an IonContainerLite it returns itself.

Returns:IonContainerLite

the container of the value; null for stand-alone top level values.

getContextSymbolTableback to summary
public SymbolTable getContextSymbolTable()

Implements com.amazon.ion.impl.lite.IonContext.getContextSymbolTable.

Doc from com.amazon.ion.impl.lite.IonContext.getContextSymbolTable.

Returns the symbol table that is directly assigned to this context. For TopLevelContext it is the symbol table member. For IonContainerLite and IonSystemLite it is null.

Returns:SymbolTable

the directly assigned symbol table, with no recursive lookup.

getSystemback to summary
public IonSystemLite getSystem()

Implements com.amazon.ion.impl.lite.IonContext.getSystem.

Doc from com.amazon.ion.impl.lite.IonContext.getSystem.

Get the IonSystem concrete object that created the IonValue that is associated with this context. Generally this delegates to the parent.

Returns:IonSystemLite

not null

wrapback to summary
public static ContainerlessContext wrap(IonSystemLite system)
wrapback to summary
public static ContainerlessContext wrap(IonSystemLite system, SymbolTable symbols)