|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.dom.lazydom.LazyDOMDocBuilderGenerator
Class to generate code to build the document tree for the Lazy DOM. This creates a static template DOM that is used to instantiate individual nodes.
The static template is initialized by a set of methods to get around the method size limitation of doing this as an array initializer.
Field Summary | |
static String |
DOCUMENT_VAR_NAME
Name for the variable holding the Document during creation. |
(package private) static String |
LAZY_DOCUMENT_FIELD
Field containing LazyDocument. |
Constructor Summary | |
LazyDOMDocBuilderGenerator()
|
Method Summary | |
void |
createBuildDocumentMethod(XMLCDocument xmlcDoc,
AccessorGenerator accessorGenerator,
ElementTable elementTable,
JavaClass docClass,
JavaMethod buildDocumentMethod)
Generate the document builder method. |
void |
generateDocCreateFromTemplate(Document document,
String templateFieldName,
String docFieldName,
JavaCode body)
Generate code to create a document from a TemplateDOM. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DOCUMENT_VAR_NAME
static String LAZY_DOCUMENT_FIELD
Constructor Detail |
public LazyDOMDocBuilderGenerator()
Method Detail |
public void generateDocCreateFromTemplate(Document document, String templateFieldName, String docFieldName, JavaCode body)
document
- Document that will be recreated.templateFieldName
- Name of template field.docFieldName
- Name of field for document object.public void createBuildDocumentMethod(XMLCDocument xmlcDoc, AccessorGenerator accessorGenerator, ElementTable elementTable, JavaClass docClass, JavaMethod buildDocumentMethod) throws XMLCException
createBuildDocumentMethod
in interface DocBuilderGenerator
accessorGenerator
- The accessor generator for the DOM in use.elementTable
- The table of element information.docClass
- The document class being generated.buildDocumentMethod
- The buildDocument() method being generated.
XMLCException
DocBuilderGenerator.createBuildDocumentMethod(org.enhydra.xml.xmlc.dom.XMLCDocument, org.enhydra.xml.xmlc.dom.AccessorGenerator, org.enhydra.xml.xmlc.compiler.ElementTable, org.enhydra.xml.xmlc.codegen.JavaClass, org.enhydra.xml.xmlc.codegen.JavaMethod)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |