public final class ReflectiveParser extends Object
<server-name>
maps to the method
server_name
. Note that the mapping is one-way, hyphens become
underscores, but then you don't really want to use underscores in XML tag
names anyway, do you? Also, all mixed content text (that is, text inside
elements) is ignored, so think attributes.Constructor and Description |
---|
ReflectiveParser() |
Modifier and Type | Method and Description |
---|---|
static void |
parse(TreeLogger logger,
Schema schema,
Reader reader) |
static void |
registerSchemaLevel(Class<? extends Schema> schemaLevelClass)
Can safely register the same class recursively.
|
public static void parse(TreeLogger logger, Schema schema, Reader reader) throws UnableToCompleteException
UnableToCompleteException
Copyright © 2018. All rights reserved.