01: /*
02: $Id: PropertyValueConverter.java 3423 2007-07-05 09:47:56Z hengels $
03: (c) Copyright 2002 mercatis information systems GmbH
04:
05: Part of e-lib
06:
07: This file contains unpublished, proprietary trade secret information of
08: mercatis information systems GmbH. Use, transcription, duplication and
09: modification are strictly prohibited without prior written consent of
10: mercatis information systems GmbH.
11: See http://www.mercatis.de
12: */
13:
14: /*
15: * Copyright 2000,2005 wingS development team.
16: *
17: * This file is part of wingS (http://wingsframework.org).
18: *
19: * wingS is free software; you can redistribute it and/or modify
20: * it under the terms of the GNU Lesser General Public License
21: * as published by the Free Software Foundation; either version 2.1
22: * of the License, or (at your option) any later version.
23: *
24: * Please see COPYING for the complete licence.
25: */
26: package org.wings.template;
27:
28: /**
29: * A PropertyValueConverter is able to convert a property value (a string) to an Java object.
30: *
31: * @author <a href="mailto:armin.haaf@mercatis.de">Armin Haaf</a>
32: */
33: public interface PropertyValueConverter {
34:
35: /**
36: * Describe <code>toObject</code> method here.
37: *
38: * @param value a <code>String</code> value
39: * @param targetClass a <code>Class</code> value
40: * @return an <code>Object</code> value
41: * @throws IllegalArgumentException if an error occurs
42: */
43: public Object convertPropertyValue(String value, Class targetClass)
44: throws IllegalArgumentException;
45:
46: }// PropertyValueConverter
|