org.apache.cocoon.woody.formmodel
Class AggregateFieldDefinition

java.lang.Object
  extended by org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
      extended by org.apache.cocoon.woody.formmodel.AbstractDatatypeWidgetDefinition
          extended by org.apache.cocoon.woody.formmodel.FieldDefinition
              extended by org.apache.cocoon.woody.formmodel.AggregateFieldDefinition
All Implemented Interfaces:
Serviceable, WidgetDefinition

public class AggregateFieldDefinition
extends FieldDefinition

The WidgetDefinition part of a AggregateField widget, see AggregateField for more information.

Version:
$Id: AggregateFieldDefinition.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Nested Class Summary
static class AggregateFieldDefinition.SplitMapping
           
 
Field Summary
protected  XMLizable splitFailMessage
          Message to be displayed when the splitPattern does not match what the user entered.
 
Fields inherited from class org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
parent
 
Constructor Summary
AggregateFieldDefinition()
           
 
Method Summary
protected  void addSplitMapping(int group, String fieldId)
           
 void addWidgetDefinition(WidgetDefinition widgetDefinition)
           
 Widget createInstance()
          Creates and returns a widget based on this widget definition.
 org.outerj.expression.Expression getCombineExpression()
           
 XMLizable getSplitFailMessage()
           
 Iterator getSplitMappingsIterator()
           
 org.apache.oro.text.regex.Pattern getSplitPattern()
           
 String getSplitRegexp()
           
 boolean hasWidget(String id)
           
protected  void setCombineExpression(org.outerj.expression.Expression expression)
           
protected  void setSplitFailMessage(XMLizable splitFailMessage)
           
protected  void setSplitPattern(org.apache.oro.text.regex.Pattern pattern, String regexp)
           
 
Methods inherited from class org.apache.cocoon.woody.formmodel.FieldDefinition
isRequired, setRequired
 
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractDatatypeWidgetDefinition
addValueChangedListener, buildSelectionList, buildSelectionListFromModel, fireValueChangedEvent, getDatatype, getSelectionList, hasValueChangedListeners, service, setDatatype, setSelectionList
 
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
addValidator, generateDisplayData, generateDisplayData, generateLabel, getFormDefinition, getId, getLocation, getParent, setDisplayData, setId, setLocation, setParent, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

splitFailMessage

protected XMLizable splitFailMessage
Message to be displayed when the splitPattern does not match what the user entered. Optional.

Constructor Detail

AggregateFieldDefinition

public AggregateFieldDefinition()
Method Detail

addWidgetDefinition

public void addWidgetDefinition(WidgetDefinition widgetDefinition)
                         throws DuplicateIdException
Throws:
DuplicateIdException

hasWidget

public boolean hasWidget(String id)

setCombineExpression

protected void setCombineExpression(org.outerj.expression.Expression expression)

getCombineExpression

public org.outerj.expression.Expression getCombineExpression()

setSplitPattern

protected void setSplitPattern(org.apache.oro.text.regex.Pattern pattern,
                               String regexp)

getSplitPattern

public org.apache.oro.text.regex.Pattern getSplitPattern()

getSplitRegexp

public String getSplitRegexp()

getSplitFailMessage

public XMLizable getSplitFailMessage()

setSplitFailMessage

protected void setSplitFailMessage(XMLizable splitFailMessage)

addSplitMapping

protected void addSplitMapping(int group,
                               String fieldId)

getSplitMappingsIterator

public Iterator getSplitMappingsIterator()

createInstance

public Widget createInstance()
Description copied from interface: WidgetDefinition
Creates and returns a widget based on this widget definition.

Specified by:
createInstance in interface WidgetDefinition
Overrides:
createInstance in class FieldDefinition


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.