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

pack-priv Interface IonContext

Known Direct Implementers
com.amazon.ion.impl.lite.IonDatagramLite, com.amazon.ion.impl.lite.TopLevelContext, com.amazon.ion.impl.lite.ContainerlessContext, com.amazon.ion.impl.lite.IonContainerLite
Imports
com.amazon.ion.IonContainer, .SymbolTable

Provides the parent, system and symbol table definitions that are shared by one or more hierarchies of IonValues.

The type of context used by a value depends on its position.

Concrete contexts simply return the correct values (and own them). Containers return themselves as the parent and delegate to their parent for the system and symbol table values. Note that values contained directly by a datagram may store a symbol table locally as there may be more than one symbol table in a datagram.

Method Summary

Modifier and TypeMethod and Description
public IonContainerLite

Returns:

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

Return the container of values associated with this context.

public SymbolTable

Returns:

the directly assigned symbol table, with no recursive lookup.
getContextSymbolTable
()

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

public IonSystemLite

Returns:

not null
getSystem
()

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

Method Detail

getContextContainerback to summary
public IonContainerLite 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()

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()

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