org.alfresco.web.forms
Interface FormProcessor

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
XFormsProcessor

public interface FormProcessor
extends java.io.Serializable

Generates a user interface for inputing data into a template.


Nested Class Summary
static class FormProcessor.ProcessingException
          Exception for errors encoutered during form processing.
static interface FormProcessor.Session
          An abstraction layer around the xml content which allows for reseting the xml content being collected by the input method.
 
Method Summary
 FormProcessor.Session process(org.w3c.dom.Document formInstanceData, java.lang.String formInstanceDataName, Form form, java.io.Writer out)
          Processes a user interface for inputing data into a form.
 void process(FormProcessor.Session session, java.io.Writer out)
          Processes a user interface for inputing data into a form.
 

Method Detail

process

FormProcessor.Session process(org.w3c.dom.Document formInstanceData,
                              java.lang.String formInstanceDataName,
                              Form form,
                              java.io.Writer out)
                              throws FormProcessor.ProcessingException
Processes a user interface for inputing data into a form.

Parameters:
formInstanceData - provides the xml instance data if available.
formInstanceDataName - the name of the form instance data being modified.
form - the form to generate for
out - the writer to write the output to.
Throws:
FormProcessor.ProcessingException

process

void process(FormProcessor.Session session,
             java.io.Writer out)
             throws FormProcessor.ProcessingException
Processes a user interface for inputing data into a form.

Parameters:
session - the session to use.
out - the writer to write the output to.
Throws:
FormProcessor.ProcessingException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.