public class JsonConfiguration extends java.lang.Object implements ArooaConfiguration
ArooaConfiguration
based on a source of JSON.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_FIELD |
static java.lang.String |
TEXT_FIELD |
Constructor and Description |
---|
JsonConfiguration(java.lang.String jsonString) |
Modifier and Type | Method and Description |
---|---|
<P extends ParseContext<P>> |
parse(P parentContext)
Parse the encapsulated configuration.
|
JsonConfiguration |
withNamespaceMappings(NamespaceMappings namespaceMappings) |
public static final java.lang.String ELEMENT_FIELD
public static final java.lang.String TEXT_FIELD
public JsonConfiguration withNamespaceMappings(NamespaceMappings namespaceMappings)
public <P extends ParseContext<P>> ConfigurationHandle<P> parse(P parentContext) throws ArooaParseException
ArooaConfiguration
parse
in interface ArooaConfiguration
P
- The type of the context in which parsing occurs.parentContext
- The context in which this configuration will be
parsed. This context will provide the
ArooaHandler
, and therefore
subsequent child contexts.ConfigurationHandle
. The handle provides access to the context created
as the result of the parse and a way of saving this context back into the configuration.ArooaParseException
- If parsing fails.