org.oddjob.arooa.parsing
Interface ArooaContext

All Known Implementing Classes:
DesignInstanceContext, DesignSeedContext, HandlerOverrideContext, OverrideContext, RootContext, RuntimeOverrideContext, SessionOverrideContext

public interface ArooaContext

Provides a 'context' for parsing an element. An element is processed/parsed/ (ArooaHandlered) within an ArooaContext which is that elements parent context. This creates a RuntimeConfiguration for the element.

Once the RuntimeConfiguration has been created, a new context can be created which is the context of the element just processed.

The RuntimeConfiguration is then given the opportunity of providing an alternative context via the inherited ParsingInterceptor.intercept(ArooaContext) method.

Author:
rob

Method Summary
 ArooaHandler getArooaHandler()
          Get the ArooHandler that will be used to process any child elements.
 ArooaType getArooaType()
          Get the type of bean this is.
 ConfigurationNode getConfigurationNode()
          Get the ConfigurationNode for this context.
 ArooaContext getParent()
          Get the parent ArooaContext
 PrefixMappings getPrefixMappings()
          Get the prefix mappings for this context.
 RuntimeConfiguration getRuntime()
          Get the current RuntimeConfiguration{} for this context.
 ArooaSession getSession()
          Get the session for this context.
 

Method Detail

getArooaType

ArooaType getArooaType()
Get the type of bean this is.

Returns:
The type. Never null.

getParent

ArooaContext getParent()
Get the parent ArooaContext

Returns:
The parent context. This will be null for the root context.

getRuntime

RuntimeConfiguration getRuntime()
Get the current RuntimeConfiguration{} for this context.

Returns:
A RuntimeConfiguration. This may be null for the root context.

getConfigurationNode

ConfigurationNode getConfigurationNode()
Get the ConfigurationNode for this context.

Returns:
A RuntimeNode. Never null.

getArooaHandler

ArooaHandler getArooaHandler()
Get the ArooHandler that will be used to process any child elements.

Returns:
An ArooaHandler. Never null.

getPrefixMappings

PrefixMappings getPrefixMappings()
Get the prefix mappings for this context.

Returns:

getSession

ArooaSession getSession()
Get the session for this context.

Returns: