DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.autoform
Class DcsViewRecord

java.lang.Object
  extended by org.dlese.dpc.schemedit.autoform.AutoForm
      extended by org.dlese.dpc.schemedit.autoform.DcsViewRecord
Direct Known Subclasses:
EditorViewRecord

public class DcsViewRecord
extends AutoForm

Displays an XML metadata record using the ViewerRenderer. DcsViewRecord provides the view of the entire record for the DCS DcsViewRecord page

Author:
ostwald

Field Summary
 
Fields inherited from class org.dlese.dpc.schemedit.autoform.AutoForm
df, formBeanName, framework, instanceDocument, schemaFile, sh, writer
 
Constructor Summary
DcsViewRecord(MetaDataFramework framework)
          Constructor for the DcsViewRecord object
DcsViewRecord(String xmlFormat)
          Constructor for the Stand-alone DcsViewRecord 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
protected  File getBatchJspDest(String pageName)
          Path for writing component jsp pages.
protected  File getJspDest(String pageName)
          Path for writing master jsp files.
protected  String getMasterComponentPath(String pageName)
           
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 DcsViewRecord class.
 void renderAndWrite()
           
static void setLogging(boolean verbose)
           
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.AutoForm
elementToJsp, getComponentJspHeader, prtlnErr, render, render, renderAndWrite, renderAndWrite, setVerbose, writeJsp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DcsViewRecord

public DcsViewRecord(MetaDataFramework framework)
Constructor for the DcsViewRecord object

Parameters:
framework - Description of the Parameter

DcsViewRecord

public DcsViewRecord(String xmlFormat)
              throws Exception,
                     SchemaHelperException
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 Exception
Exception
Method Detail

main

public static void main(String[] args)
                 throws Exception
The main program for the DcsViewRecord class. The first argument is command, the second is arg (if nec);

Parameters:
args - The command line arguments
Throws:
Exception

renderAndWrite

public void renderAndWrite()
                    throws Exception
Throws:
Exception

batchRenderAndWrite

public void batchRenderAndWrite()
                         throws Exception
Description copied from class: AutoForm
Create a jsp file for each top-level element of the schema

Overrides:
batchRenderAndWrite in class AutoForm
Throws:
Exception - NOT YET DOCUMENTED

getRendererClassName

protected String getRendererClassName()
Description copied from class: AutoForm
Gets the rendererClassName attribute of the AutoForm object

Overrides:
getRendererClassName in class AutoForm
Returns:
The rendererClassName value

getJspDest

protected File getJspDest(String pageName)
Description copied from class: AutoForm
Path for writing master jsp files.

Overrides:
getJspDest in class AutoForm
Parameters:
pageName - NOT YET DOCUMENTED
Returns:
The jspDest value

getMasterJspHeader

protected String getMasterJspHeader()
Description copied from class: AutoForm
JSP code to insert at the top of master jsp files.

Overrides:
getMasterJspHeader in class AutoForm
Returns:
The masterJspHeader value

getBatchJspDest

protected File getBatchJspDest(String pageName)
                        throws Exception
Description copied from class: AutoForm
Path for writing component jsp pages.

Overrides:
getBatchJspDest in class AutoForm
Parameters:
pageName - NOT YET DOCUMENTED
Returns:
The batchJspDest value
Throws:
Exception - NOT YET DOCUMENTED

getMasterComponentPath

protected String getMasterComponentPath(String pageName)

setLogging

public static void setLogging(boolean verbose)

DLESE Tools
v1.6.0