KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > datatypes > processors > CopyProcessor


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

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     public static CopyProcessor getInstance() {
28         return instance;
29     }
30
31     public final Object JavaDoc process(Node node, Field field, Object JavaDoc value) {
32         return value;
33     }
34
35     public String JavaDoc toString() {
36         return "COPY";
37     }
38 }
39
40
41
Popular Tags