|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.compat.xml.AbstractXmlBuilder
diva.compat.xml.CompositeBuilder
public class CompositeBuilder
CompositeBuilder is a non-validating parser that uses other builders to parse and generate XML files from arbitary collections of objects. (FIXME - more documentation here)
Field Summary | |
---|---|
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 Summary | |
---|---|
CompositeBuilder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class diva.compat.xml.AbstractXmlBuilder |
---|
getDelegate, setDelegate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public CompositeBuilder()
Method Detail |
---|
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
public static void main(String[] args) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |