org.mycore.frontend.editor
Class MCREditorSubmission

java.lang.Object
  extended by org.mycore.frontend.editor.MCREditorSubmission

public class MCREditorSubmission
extends Object

Container class that holds all data and files edited and submitted from an HTML page that contains a MyCoRe XML editor form.

Version:
$Revision: 15295 $ $Date: 2009-05-29 15:15:55 +0200 (Fri, 29 May 2009) $
Author:
Frank Lützenkirchen

Constructor Summary
MCREditorSubmission(Element editor)
           
MCREditorSubmission(Element input, Element editor)
          Set variables from source xml file that should be edited
MCREditorSubmission(Element saved, List submitted, String root, MCRRequestParameters parms)
           
MCREditorSubmission(MCRRequestParameters parms, Element editor, boolean validate)
           
 
Method Summary
(package private)  Element buildFailedConditions()
           
(package private)  Element buildInputElements()
           
(package private)  Element buildRepeatElements()
           
(package private)  void changeRepeatNumber(String prefix, int change)
           
(package private)  void changeVariablesAndRepeats(String prefix, int nr, int change)
           
(package private)  void doMinus(String prefix, int nr)
           
(package private)  void doPlus(String prefix, int nr)
           
(package private)  void doUp(String prefix, int nr)
           
(package private)  boolean errors()
           
 org.apache.commons.fileupload.FileItem getFile(Object xmlNode)
           
 List getFiles()
           
 MCRRequestParameters getParameters()
           
 List getVariables()
           
 Document getXML()
           
 Object getXMLNode(org.apache.commons.fileupload.FileItem file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCREditorSubmission

MCREditorSubmission(Element input,
                    Element editor)
Set variables from source xml file that should be edited

Parameters:
input - the root element of the XML input
editor - the editor definition

MCREditorSubmission

MCREditorSubmission(MCRRequestParameters parms,
                    Element editor,
                    boolean validate)

MCREditorSubmission

MCREditorSubmission(Element saved,
                    List submitted,
                    String root,
                    MCRRequestParameters parms)

MCREditorSubmission

MCREditorSubmission(Element editor)
Method Detail

getVariables

public List getVariables()

getFiles

public List getFiles()

getFile

public org.apache.commons.fileupload.FileItem getFile(Object xmlNode)

getXMLNode

public Object getXMLNode(org.apache.commons.fileupload.FileItem file)

getXML

public Document getXML()

buildInputElements

Element buildInputElements()

buildRepeatElements

Element buildRepeatElements()

buildFailedConditions

Element buildFailedConditions()

errors

boolean errors()

getParameters

public MCRRequestParameters getParameters()

doPlus

void doPlus(String prefix,
            int nr)

doMinus

void doMinus(String prefix,
             int nr)

doUp

void doUp(String prefix,
          int nr)

changeRepeatNumber

void changeRepeatNumber(String prefix,
                        int change)

changeVariablesAndRepeats

void changeVariablesAndRepeats(String prefix,
                               int nr,
                               int change)