KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > patterns > thickclient > application > TextProcessor


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: TextProcessor.java,v 1.2 2007/01/07 06:14:38 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21  
22 package org.opensubsystems.patterns.thickclient.application;
23
24 /**
25  * Interface, which should be implemented by anybody who wants to have change
26  * to process some text.
27  *
28  * @version $Id: TextProcessor.java,v 1.2 2007/01/07 06:14:38 bastafidli Exp $
29  * @author Miro Halas
30  * @code.reviewer Miro Halas
31  * @code.reviewed Initial revision
32  */

33 public interface TextProcessor
34 {
35    /**
36     * This method receives a string representing the modification (such as the
37     * character or text typed by the user) and applies modification (if any,
38     * such as uppercase of the text) and returns the modified text. If no
39     * modification is required, just return the received text.
40     *
41     * @param text - text for modification
42     * @return String with modified text
43     */

44    String JavaDoc processText(
45       String JavaDoc text
46    );
47 }
48
Popular Tags