01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.datatypes.processors;
11:
12: import org.mmbase.bridge.*;
13:
14: /**
15: * The Processor that does nothing.
16: *
17: * @author Michiel Meeuwissen
18: * @version $Id: CopyProcessor.java,v 1.3 2005/12/10 14:33:36 michiel Exp $
19: * @since MMBase-1.8
20: */
21:
22: public final class CopyProcessor implements Processor {
23:
24: private static final long serialVersionUID = 1L;
25:
26: private static CopyProcessor instance = new CopyProcessor();
27:
28: public static CopyProcessor getInstance() {
29: return instance;
30: }
31:
32: public final Object process(Node node, Field field, Object value) {
33: return value;
34: }
35:
36: public String toString() {
37: return "COPY";
38: }
39: }
|