Package org.oddjob.arooa.parsing
Interface ArooaContext
- All Superinterfaces:
ParseContext<ArooaContext>
- All Known Implementing Classes:
DesignInstanceContext,DesignSeedContext,HandlerOverrideContext,RootContext,SessionOverrideContext
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
Modifier and TypeMethodDescriptiondefault voiddestroy()Destroy this context.Get theArooaHandlerthat will be used to process any child elements.Get the type of bean or property this is a context for (a component or a value)Get theConfigurationNodefor this context.default ElementHandler<ArooaContext> Get theElementHandlerthat will be used to process any child elements.Get the parentArooaContextGet the prefix mappings for this context.Get the currentRuntimeConfigurationfor this context.Get the session for this context.
-
Method Details
-
getArooaType
ArooaType getArooaType()Get the type of bean or property this is a context for (a component or a value)- Returns:
- The type. Never null.
-
getParent
ArooaContext getParent()Get the parentArooaContext- Specified by:
getParentin interfaceParseContext<ArooaContext>- Returns:
- The parent context. This will be null for the root context.
-
getRuntime
RuntimeConfiguration getRuntime()Get the currentRuntimeConfigurationfor this context.- Returns:
- A RuntimeConfiguration. This may be null for the root context.
-
getConfigurationNode
ConfigurationNode<ArooaContext> getConfigurationNode()Get theConfigurationNodefor this context.- Specified by:
getConfigurationNodein interfaceParseContext<ArooaContext>- Returns:
- A RuntimeNode. Never null.
-
getArooaHandler
ArooaHandler getArooaHandler()Get theArooaHandlerthat will be used to process any child elements.- Returns:
- An ArooaHandler. Never null.
-
getElementHandler
Description copied from interface:ParseContextGet theElementHandlerthat will be used to process any child elements.- Specified by:
getElementHandlerin interfaceParseContext<ArooaContext>- Returns:
- A handler. Never null.
-
getPrefixMappings
PrefixMappings getPrefixMappings()Get the prefix mappings for this context.- Specified by:
getPrefixMappingsin interfaceParseContext<ArooaContext>- Returns:
- The prefix mappings.
-
getSession
ArooaSession getSession()Get the session for this context.- Returns:
- The session. Never null.
-
destroy
default void destroy()Destroy this context.- Specified by:
destroyin interfaceParseContext<ArooaContext>
-