org.apache.cocoon.forms.datatype
Class DynamicSelectionList

java.lang.Object
  extended byorg.apache.cocoon.forms.datatype.DynamicSelectionList
All Implemented Interfaces:
SelectionList

public class DynamicSelectionList
extends Object
implements SelectionList

SelectionList implementation that always reads its content from the source each time it is requested.

Note: the class SelectionListBuilder also interprets the same fd:selection-list XML, so if anything changes here to how that XML is interpreted, it also needs to change over there and vice versa.

Version:
$Id: DynamicSelectionList.java 326838 2005-10-20 06:26:53Z sylvain $

Nested Class Summary
 class DynamicSelectionList.SelectionListHandler
          XMLConsumer used to handle selection lists generated on the fly.
 
Field Summary
 
Fields inherited from interface org.apache.cocoon.forms.datatype.SelectionList
ITEM_EL, LABEL_EL, SELECTION_LIST_EL
 
Constructor Summary
DynamicSelectionList(Datatype datatype, String src, boolean usePerRequestCache, ServiceManager serviceManager, Context context)
           
DynamicSelectionList(Datatype datatype, String src, ServiceManager serviceManager)
          Creates a DynamicSelectionList without caching
 
Method Summary
 void generateSaxFragment(ContentHandler contentHandler, Locale locale)
           
 Datatype getDatatype()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicSelectionList

public DynamicSelectionList(Datatype datatype,
                            String src,
                            boolean usePerRequestCache,
                            ServiceManager serviceManager,
                            Context context)
Parameters:
datatype -
src -
usePerRequestCache -
serviceManager -
context -

DynamicSelectionList

public DynamicSelectionList(Datatype datatype,
                            String src,
                            ServiceManager serviceManager)
Creates a DynamicSelectionList without caching

Parameters:
datatype - -
src - -
serviceManager - -
Method Detail

getDatatype

public Datatype getDatatype()
Specified by:
getDatatype in interface SelectionList

generateSaxFragment

public void generateSaxFragment(ContentHandler contentHandler,
                                Locale locale)
                         throws SAXException
Specified by:
generateSaxFragment in interface SelectionList
Throws:
SAXException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.