org.mmbase.datatypes.processors
Class IgnoreIfChangedProcessor

java.lang.Object
  extended byorg.mmbase.datatypes.processors.IgnoreIfChangedProcessor
All Implemented Interfaces:
Processor, Serializable

public class IgnoreIfChangedProcessor
extends Object
implements Processor

If this processor is used on a certain field, that you can effectively set the value only once (until the commit of the node). This is based on Node.isChanged(String). It that returns true (and the node is not new), the old value is used.

Since:
MMBase-1.8.1
Version:
$Id: IgnoreIfChangedProcessor.java,v 1.2 2006/07/06 15:14:59 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Constructor Summary
IgnoreIfChangedProcessor()
           
 
Method Summary
 Object process(Node node, Field field, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IgnoreIfChangedProcessor

public IgnoreIfChangedProcessor()
Method Detail

process

public final Object process(Node node,
                            Field field,
                            Object value)
Specified by:
process in interface Processor
Parameters:
node - The node object for which the field must be transformed.
field - The field which is set.
value - The (new) field value.

toString

public String toString()


MMBase build 1.8.1.20060716