public class CompositeBuilder extends AbstractXmlBuilder
Modifier and Type | Field and Description |
---|---|
static String |
BUILDER_DECLS_TAG
Indicates a group of builder declarations
|
static String |
BUILDER_TAG
Indicates a builder for a recognizer
|
static String |
CLASS_TAG
Indicates a recognizer class
|
static String |
DTD_1
The DTD for builder declarations.
|
static String |
DTD_URL
The URL where the DTD is stored.
|
static String |
PUBLIC_ID
The public identity of the RCL dtd file.
|
static String |
TAG_TAG
Indicates the tag of a recognizer
|
Constructor and Description |
---|
CompositeBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addBuilderDecls(Reader in)
Add all of the builder declarations in the given
XML document to the builder map.
|
Object |
build(XmlElement elt,
String type)
Build an object based on the XML element by looking up the
appropriate builder and calling that builder on the element.
|
XmlElement |
generate(Object in)
Build an XML element based on given object by looking up
the appropriate builder based on the object's class name
and calling that builder's generate method on the object.
|
static void |
main(String[] args)
Simple test of this class.
|
getDelegate, setDelegate
public static final String PUBLIC_ID
public static final String DTD_URL
public static final String DTD_1
public static final String CLASS_TAG
public static final String TAG_TAG
public static final String BUILDER_TAG
public static final String BUILDER_DECLS_TAG
public void addBuilderDecls(Reader in) throws Exception
Exception
public Object build(XmlElement elt, String type) throws Exception
build
in interface XmlBuilder
build
in class AbstractXmlBuilder
Exception
public XmlElement generate(Object in) throws Exception
generate
in interface XmlBuilder
generate
in class AbstractXmlBuilder
Exception
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.