Package org.oddjob.arooa.json
Class ConfigurationTreeArooaParser
java.lang.Object
org.oddjob.arooa.json.ConfigurationTreeArooaParser
- All Implemented Interfaces:
ArooaParser<SimpleParseContext>
Parse an
ArooaConfiguration into an ConfigurationTree.-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationTreeArooaParser(NamespaceMappings namespaceMappings) ConfigurationTreeArooaParser(NamespaceMappings namespaceMappings, Consumer<ConfigurationTree> treeConsumer) -
Method Summary
Modifier and TypeMethodDescriptionparse(ArooaConfiguration configuration) Parse anArooaConfiguration.
-
Constructor Details
-
ConfigurationTreeArooaParser
-
ConfigurationTreeArooaParser
public ConfigurationTreeArooaParser(NamespaceMappings namespaceMappings, Consumer<ConfigurationTree> treeConsumer)
-
-
Method Details
-
parse
public ConfigurationHandle<SimpleParseContext> parse(ArooaConfiguration configuration) throws ArooaParseException Description copied from interface:ArooaParserParse anArooaConfiguration.- Specified by:
parsein interfaceArooaParser<SimpleParseContext>- Parameters:
configuration- The configuration.- Returns:
- A
ConfigurationHandle. - Throws:
ArooaParseException- If parsing fails.
-
getConfigurationTree
-