KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > template > PropertyValueConverter


1 /*
2   $Id: PropertyValueConverter.java,v 1.4 2005/05/13 15:47:08 blueshift Exp $
3   (c) Copyright 2002 mercatis information systems GmbH
4
5   Part of e-lib
6  
7   This file contains unpublished, proprietary trade secret information of
8   mercatis information systems GmbH. Use, transcription, duplication and
9   modification are strictly prohibited without prior written consent of
10   mercatis information systems GmbH.
11   See http://www.mercatis.de
12 */

13
14 /*
15  * $Id: PropertyValueConverter.java,v 1.4 2005/05/13 15:47:08 blueshift Exp $
16  * Copyright 2000,2005 wingS development team.
17  *
18  * This file is part of wingS (http://www.j-wings.org).
19  *
20  * wingS is free software; you can redistribute it and/or modify
21  * it under the terms of the GNU Lesser General Public License
22  * as published by the Free Software Foundation; either version 2.1
23  * of the License, or (at your option) any later version.
24  *
25  * Please see COPYING for the complete licence.
26  */

27 package org.wings.template;
28
29 /**
30  * A PropertyValueConverter is able to convert a property value (a string) to an Java object.
31  *
32  * @author <a HREF="mailto:armin.haaf@mercatis.de">Armin Haaf</a>
33  * @version $Revision: 1.4 $
34  */

35 public interface PropertyValueConverter {
36
37     /**
38      * Describe <code>toObject</code> method here.
39      *
40      * @param value a <code>String</code> value
41      * @param targetClass a <code>Class</code> value
42      * @return an <code>Object</code> value
43      * @throws IllegalArgumentException if an error occurs
44      */

45     public Object JavaDoc convertPropertyValue(String JavaDoc value, Class JavaDoc targetClass)
46             throws IllegalArgumentException JavaDoc;
47
48 }// PropertyValueConverter
49

50
Popular Tags