org.apache.commons.betwixt.expression
Class CollectionUpdater

java.lang.Object
  extended by org.apache.commons.betwixt.expression.CollectionUpdater
All Implemented Interfaces:
Updater

public class CollectionUpdater
extends java.lang.Object
implements Updater

Updates a Collection by adding the new value to it.

Since:
0.8

Constructor Summary
CollectionUpdater()
           
 
Method Summary
static CollectionUpdater getInstance()
          Gets singleton instance.
 void update(Context context, java.lang.Object newValue)
          Updates collection contained by the context by adding the new value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUpdater

public CollectionUpdater()
Method Detail

getInstance

public static CollectionUpdater getInstance()
Gets singleton instance.

Returns:
CollectionUpdater, not null

update

public void update(Context context,
                   java.lang.Object newValue)
Updates collection contained by the context by adding the new value.

Specified by:
update in interface Updater
Parameters:
context - Context, not null
newValue - value to be added, possibly null


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.