org.oddjob.arooa.parsing
Class RootContext

java.lang.Object
  extended by org.oddjob.arooa.parsing.RootContext
All Implemented Interfaces:
ArooaContext

public class RootContext
extends Object
implements ArooaContext

A Context for the parsing. This context is kind of like a seed context from which everything grows. It has no RuntimeConfiguration or RuntimeNode as these require the document node of the configuration to be parsed.

Author:
rob

Constructor Summary
RootContext(ArooaType type, ArooaSession session, ArooaHandler rootHandler)
          Constructor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootContext

public RootContext(ArooaType type,
                   ArooaSession session,
                   ArooaHandler rootHandler)
Constructor.

Parameters:
type - The type. May be null depending on parser (XMLArooaParser for instance).
session - The session. Must be null depending on parser.
rootHandler - The handler. Must not be null.
Method Detail

getArooaType

public ArooaType getArooaType()
Description copied from interface: ArooaContext
Get the type of bean this is.

Specified by:
getArooaType in interface ArooaContext
Returns:
The type. Never null.

getParent

public ArooaContext getParent()
Description copied from interface: ArooaContext
Get the parent ArooaContext

Specified by:
getParent in interface ArooaContext
Returns:
The parent context. This will be null for the root context.

getRuntime

public RuntimeConfiguration getRuntime()
Description copied from interface: ArooaContext
Get the current RuntimeConfiguration{} for this context.

Specified by:
getRuntime in interface ArooaContext
Returns:
A RuntimeConfiguration. This may be null for the root context.

getPrefixMappings

public PrefixMappings getPrefixMappings()
Description copied from interface: ArooaContext
Get the prefix mappings for this context.

Specified by:
getPrefixMappings in interface ArooaContext
Returns:

getSession

public ArooaSession getSession()
Description copied from interface: ArooaContext
Get the session for this context.

Specified by:
getSession in interface ArooaContext
Returns:

getConfigurationNode

public ConfigurationNode getConfigurationNode()
Description copied from interface: ArooaContext
Get the ConfigurationNode for this context.

Specified by:
getConfigurationNode in interface ArooaContext
Returns:
A RuntimeNode. Never null.

getArooaHandler

public ArooaHandler getArooaHandler()
Description copied from interface: ArooaContext
Get the ArooHandler that will be used to process any child elements.

Specified by:
getArooaHandler in interface ArooaContext
Returns:
An ArooaHandler. Never null.