org.formproc.config
Class XMLFormConfiguration

java.lang.Object
  |
  +--org.formproc.config.AbstractFormConfiguration
        |
        +--org.formproc.config.XMLFormConfiguration
All Implemented Interfaces:
FormConfiguration, com.anthonyeden.lib.resource.ResourceRecipient

public class XMLFormConfiguration
extends AbstractFormConfiguration
implements com.anthonyeden.lib.resource.ResourceRecipient

This class represents configuration information for a single Form. The loadConfiguration method is used to fill an instance of this class with configuration information used to setup a Form. Only one instance of this class is required for each named Form (although there may be multiple instances of said Form).

Author:
Anthony Eden

Field Summary
 
Fields inherited from class org.formproc.config.AbstractFormConfiguration
convertNullValues, formElementGroupList, formElementGroups, formElementList, formElements, name, skipNullValues, storeNullValues, storer, typeConverter, validateNullValues, validator
 
Constructor Summary
XMLFormConfiguration(FormManager formManager)
          Construct a FormConfiguration object for the given FormManager.
 
Method Summary
 void load(java.io.InputStream in)
          Load the configuration from the given input stream.
protected  void loadConfiguration(com.anthonyeden.lib.config.Configuration configuration)
          Load the Form's configuration information from the given configuration object.
protected  void loadConfiguration(java.io.InputStream in)
          Load the form's configuration information from the given InputStream.
protected  void setConvertNullValues(java.lang.String convertNullValues)
           
protected  void setSkipNullValues(java.lang.String skipNullValues)
           
protected  void setStoreNullValues(java.lang.String storeNullValues)
           
protected  void setValidateNullValues(java.lang.String validateNullValues)
           
 
Methods inherited from class org.formproc.config.AbstractFormConfiguration
getFormElement, getFormElementGroup, getFormElementGroups, getFormElements, getName, getStorer, getTypeConverter, getValidator, isConvertNullValues, isSkipNullValues, isStoreNullValues, isValidateNullValues, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFormConfiguration

public XMLFormConfiguration(FormManager formManager)
Construct a FormConfiguration object for the given FormManager.

Parameters:
formManager - The FormManager
Method Detail

load

public void load(java.io.InputStream in)
          throws java.lang.Exception
Load the configuration from the given input stream.

Specified by:
load in interface com.anthonyeden.lib.resource.ResourceRecipient
Parameters:
in - The InputStream
Throws:
java.lang.Exception

loadConfiguration

protected void loadConfiguration(java.io.InputStream in)
                          throws java.lang.Exception
Load the form's configuration information from the given InputStream. The InputStream is expected to contain XML data.

Parameters:
in - The InputStream
Throws:
java.lang.Exception - Any Exception

loadConfiguration

protected void loadConfiguration(com.anthonyeden.lib.config.Configuration configuration)
                          throws java.lang.Exception
Load the Form's configuration information from the given configuration object.

Parameters:
configuration - The Configuration object
Throws:
java.lang.Exception - Any Exception

setSkipNullValues

protected void setSkipNullValues(java.lang.String skipNullValues)

setValidateNullValues

protected void setValidateNullValues(java.lang.String validateNullValues)

setConvertNullValues

protected void setConvertNullValues(java.lang.String convertNullValues)

setStoreNullValues

protected void setStoreNullValues(java.lang.String storeNullValues)


Copyright (c) 2001-2003 Anthony Eden. All Rights Reserved.