Package org.oddjob.arooa.parsing
Interface ParseContext<P extends ParseContext<P>>
- All Known Subinterfaces:
ArooaContext,SimpleParseContext
- All Known Implementing Classes:
DesignInstanceContext,DesignSeedContext,HandlerOverrideContext,OverrideContext,RootContext,SessionOverrideContext,SimpleParseContext.SimpleImpl,SimpleParseContext.SimpleRoot
public interface ParseContext<P extends ParseContext<P>>
A context in which an
ArooaConfiguration is parsed.
The context parameterised to allow richer contexts to be parsed for specific purposes
such as bean creation or design.
param The type of the context.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy this context.Get theConfigurationNodefor this context.Get theElementHandlerthat will be used to process any child elements.Get the parentArooaContextGet the prefix mappings for this context.
-
Method Details
-
getParent
P getParent()Get the parentArooaContext- Returns:
- The parent context. This will be null for the root context.
-
getElementHandler
ElementHandler<P> getElementHandler()Get theElementHandlerthat will be used to process any child elements.- Returns:
- A handler. Never null.
-
getPrefixMappings
PrefixMappings getPrefixMappings()Get the prefix mappings for this context.- Returns:
- The prefix mappings.
-
getConfigurationNode
ConfigurationNode<P> getConfigurationNode()Get theConfigurationNodefor this context.- Returns:
- A RuntimeNode. Never null.
-
destroy
void destroy()Destroy this context.
-