ca.grimoire.formtree.receiver
Class IgnoreReceiver

java.lang.Object
  extended by ca.grimoire.formtree.receiver.IgnoreReceiver
All Implemented Interfaces:
FormElementReceiver

public class IgnoreReceiver
extends java.lang.Object
implements FormElementReceiver

A form element receiver that acts as a black hole, ignoring all values passed into it.


Field Summary
static IgnoreReceiver IGNORE
          A convenience instance of IgnoreReceiver.
 
Constructor Summary
IgnoreReceiver()
           
 
Method Summary
 FormElementReceiver index(int index)
          Ignores an index element.
 FormElementReceiver key(java.lang.String field)
          Ignores a key element.
 void values(java.lang.Iterable<java.lang.String> values)
          Ignores the passed value entirely.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORE

public static final IgnoreReceiver IGNORE
A convenience instance of IgnoreReceiver.

Constructor Detail

IgnoreReceiver

public IgnoreReceiver()
Method Detail

values

public void values(java.lang.Iterable<java.lang.String> values)
Ignores the passed value entirely.

Specified by:
values in interface FormElementReceiver
Parameters:
values - the values to store.
See Also:
FormElementReceiver.values(java.lang.Iterable)

key

public FormElementReceiver key(java.lang.String field)
Ignores a key element.

Specified by:
key in interface FormElementReceiver
Parameters:
field - the field to decode.
Returns:
a form receiver for the key's contents.
See Also:
FormElementReceiver.key(java.lang.String)

index

public FormElementReceiver index(int index)
Ignores an index element.

Specified by:
index in interface FormElementReceiver
Parameters:
index - the index to decode.
Returns:
a form receiver for the index's contents.
See Also:
FormElementReceiver.index(int)


Copyright © 2011 Grimoire Alchymia. All Rights Reserved.