public class CompositeBuilder extends AbstractXmlBuilder
| Red |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUILDER_DECLS_TAG
Indicates a group of builder declarations
|
static java.lang.String |
BUILDER_TAG
Indicates a builder for a recognizer
|
static java.lang.String |
CLASS_TAG
Indicates a recognizer class
|
static java.lang.String |
DTD_1
The DTD for builder declarations.
|
static java.lang.String |
DTD_URL
The URL where the DTD is stored.
|
static java.lang.String |
PUBLIC_ID
The public identity of the RCL dtd file.
|
static java.lang.String |
TAG_TAG
Indicates the tag of a recognizer
|
| Constructor and Description |
|---|
CompositeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBuilderDecls(java.io.Reader in)
Add all of the builder declarations in the given
XML document to the builder map.
|
java.lang.Object |
build(XmlElement elt,
java.lang.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(java.lang.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(java.lang.String[] args)
Simple test of this class.
|
getDelegate, setDelegatepublic static final java.lang.String PUBLIC_ID
public static final java.lang.String DTD_URL
public static final java.lang.String DTD_1
public static final java.lang.String CLASS_TAG
public static final java.lang.String TAG_TAG
public static final java.lang.String BUILDER_TAG
public static final java.lang.String BUILDER_DECLS_TAG
public void addBuilderDecls(java.io.Reader in)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object build(XmlElement elt, java.lang.String type) throws java.lang.Exception
build in interface XmlBuilderbuild in class AbstractXmlBuilderjava.lang.Exceptionpublic XmlElement generate(java.lang.Object in) throws java.lang.Exception
generate in interface XmlBuildergenerate in class AbstractXmlBuilderjava.lang.Exceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception