Package org.dlese.dpc.schemedit.autoform
Class EditorViewRecord
java.lang.Object
org.dlese.dpc.schemedit.autoform.AutoForm
org.dlese.dpc.schemedit.autoform.DcsViewRecord
org.dlese.dpc.schemedit.autoform.EditorViewRecord
Supports creation of jsp to view (as opposed to edit) an entire MetaDataRecord within the metadata editor.
Jsp is constructed by the
EditorViewerRenderer.- Version:
- $Id: EditorViewRecord.java,v 1.12 2009/07/07 02:52:53 ostwald Exp $
- Author:
- ostwald
-
Field Summary
Fields inherited from class org.dlese.dpc.schemedit.autoform.AutoForm
df, formBeanName, framework, instanceDocument, schemaFile, sh, writer -
Constructor Summary
ConstructorsConstructorDescriptionEditorViewRecord(String xmlFormat) Constructor for the Stand-alone DcsViewRecord object, meaning it is created from command line rather than via schemedit.EditorViewRecord(MetaDataFramework framework) Constructor for the EditorViewRecord object -
Method Summary
Modifier and TypeMethodDescriptionprotected FilegetBatchJspDest(String pageName) Contruct a path for the component jsp pagesprotected StringJSP code to insert at the top of component jsp files.protected FilegetJspDest(String unused) Contruct a path for the single jsp page, in the case of single-page jsp, or the page that integrates the component jsp pages, in the case of batch-rendered frameworks.protected StringgetMasterComponentPath(String pageName) protected StringJSP code to insert at the top of master jsp files.protected StringGets the rendererClassName attribute of the EditorViewRecord objectstatic voidThe main program for the EditorViewRecord class, to be invoked from the command line for debugging purposes.Methods inherited from class org.dlese.dpc.schemedit.autoform.DcsViewRecord
batchRenderAndWrite, renderAndWrite, setLoggingMethods inherited from class org.dlese.dpc.schemedit.autoform.AutoForm
elementToJsp, prtlnErr, render, render, renderAndWrite, renderAndWrite, setVerbose, writeJsp
-
Constructor Details
-
EditorViewRecord
Constructor for the EditorViewRecord object- Parameters:
framework- Description of the Parameter
-
EditorViewRecord
Constructor for the Stand-alone DcsViewRecord object, meaning it is created from command line rather than via schemedit.- Parameters:
xmlFormat- Description of the Parameter- Throws:
SchemaHelperException- Description of the ExceptionException- NOT YET DOCUMENTED
-
-
Method Details
-
main
The main program for the EditorViewRecord class, to be invoked from the command line for debugging purposes.- Parameters:
args- The command line arguments- Throws:
Exception
-
getRendererClassName
Gets the rendererClassName attribute of the EditorViewRecord object- Overrides:
getRendererClassNamein classDcsViewRecord- Returns:
- The rendererClassName value
-
getJspDest
Contruct a path for the single jsp page, in the case of single-page jsp, or the page that integrates the component jsp pages, in the case of batch-rendered frameworks.- Overrides:
getJspDestin classDcsViewRecord- Parameters:
unused- NOT YET DOCUMENTED- Returns:
- The jspDest value
-
getBatchJspDest
Contruct a path for the component jsp pages- Overrides:
getBatchJspDestin classDcsViewRecord- Parameters:
pageName- NOT YET DOCUMENTED- Returns:
- The batchJspDest value
- Throws:
Exception- NOT YET DOCUMENTED
-
getMasterJspHeader
Description copied from class:AutoFormJSP code to insert at the top of master jsp files.- Overrides:
getMasterJspHeaderin classDcsViewRecord- Returns:
- The masterJspHeader value
-
getComponentJspHeader
Description copied from class:AutoFormJSP code to insert at the top of component jsp files. In the case of AutoForm, where the components are on separate JSP pages, the component and master headers are the same. In subclasses, the component JSP pages maybe included (via jsp:include) in the master, and therefore they may require a different header.- Overrides:
getComponentJspHeaderin classAutoForm- Returns:
- The componentJspHeader value
-
getMasterComponentPath
- Overrides:
getMasterComponentPathin classDcsViewRecord
-