|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.autoform.AutoForm
public class AutoForm
Class to automatically generate jsp pages (using a Renderer class such as DleseEditorRenderer
) for editing and viewing of schemedit-based xml
documents.
Called from command line for debugging as well as from MetaDataFramework
at start-up time and after run-time reconfiguration.
Field Summary | |
---|---|
protected DocumentFactory |
df
NOT YET DOCUMENTED |
protected String |
formBeanName
NOT YET DOCUMENTED |
protected MetaDataFramework |
framework
NOT YET DOCUMENTED |
protected Document |
instanceDocument
NOT YET DOCUMENTED |
protected File |
schemaFile
NOT YET DOCUMENTED |
protected SchemaHelper |
sh
NOT YET DOCUMENTED |
protected XMLWriter |
writer
NOT YET DOCUMENTED |
Constructor Summary | |
---|---|
AutoForm(MetaDataFramework framework)
Constructor for the AutoForm object |
|
AutoForm(String xmlFormat)
Constructor for the Stand-along AutoForm object, meaning it is created from command line rather than via schemedit. |
Method Summary | |
---|---|
void |
batchRenderAndWrite()
Create a jsp file for each top-level element of the schema |
static String |
elementToJsp(Element e)
Perform any modifications to the XML to create legal JSP. |
protected File |
getBatchJspDest(String pageName)
Path for writing component jsp pages. |
protected String |
getComponentJspHeader()
JSP code to insert at the top of component jsp files. |
protected File |
getJspDest(String pageName)
Path for writing master jsp files. |
protected String |
getMasterJspHeader()
JSP code to insert at the top of master jsp files. |
protected String |
getRendererClassName()
Gets the rendererClassName attribute of the AutoForm object |
static void |
main(String[] args)
The main program for the AutoForm class. |
protected static void |
prtlnErr(String s)
NOT YET DOCUMENTED |
Element |
render()
NOT YET DOCUMENTED |
Element |
render(String xpath)
Produce a Element representing an editor for the node at xpath. |
void |
renderAndWrite(String xpath)
Description of the Method |
void |
renderAndWrite(String xpath,
File dest)
NOT YET DOCUMENTED |
static void |
setLogging(boolean verbose)
Sets the logging attribute of the AutoForm class |
static void |
setVerbose(boolean verbosity)
|
protected boolean |
writeJsp(Element element,
File dest,
String jspHeader)
Writes Element to disk as JSP page to be included in a master page at run time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Document instanceDocument
protected XMLWriter writer
protected DocumentFactory df
protected SchemaHelper sh
protected File schemaFile
protected MetaDataFramework framework
protected String formBeanName
Constructor Detail |
---|
public AutoForm(MetaDataFramework framework)
framework
- Description of the Parameterpublic AutoForm(String xmlFormat) throws Exception, SchemaHelperException
xmlFormat
- Description of the Parameter
SchemaHelperException
- Description of the Exception
Exception
- NOT YET DOCUMENTEDMethod Detail |
---|
public static void main(String[] args) throws Exception
args
- The command line arguments
Exception
- NOT YET DOCUMENTEDpublic void renderAndWrite(String xpath) throws Exception
xpath
- Description of the Parameter
Exception
- NOT YET DOCUMENTEDpublic void renderAndWrite(String xpath, File dest) throws Exception
xpath
- NOT YET DOCUMENTEDdest
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDpublic void batchRenderAndWrite() throws Exception
Exception
- NOT YET DOCUMENTEDprotected String getRendererClassName()
public Element render()
public Element render(String xpath)
Element
representing an editor for the node at xpath. The Element returned by
render is eventually converted to JSP.
xpath
- XPath to a Node in the Schema
public static String elementToJsp(Element e)
e
- Element produced by renderer
protected File getBatchJspDest(String pageName) throws Exception
pageName
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDprotected File getJspDest(String pageName) throws Exception
pageName
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDprotected String getMasterJspHeader()
protected String getComponentJspHeader()
protected boolean writeJsp(Element element, File dest, String jspHeader)
element
- Element representing editor pagedest
- NOT YET DOCUMENTEDjspHeader
- NOT YET DOCUMENTED
public static void setLogging(boolean verbose)
verbose
- The new logging valueprotected static void prtlnErr(String s)
s
- NOT YET DOCUMENTEDpublic static void setVerbose(boolean verbosity)
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |