1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.bean;
16  
17  /**
18   * <a href="BeanProperties.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public interface BeanProperties {
23  
24      public void copyProperties(Object source, Object target);
25  
26      public void copyProperties(Object source, Object target, Class<?> editable);
27  
28      public void copyProperties(
29          Object source, Object target, String[] ignoreProperties);
30  
31      public boolean getBoolean(Object bean, String param);
32  
33      public boolean getBoolean(Object bean, String param, boolean defaultValue);
34  
35      public double getDouble(Object bean, String param);
36  
37      public double getDouble(Object bean, String param, double defaultValue);
38  
39      public int getInteger(Object bean, String param);
40  
41      public int getInteger(Object bean, String param, int defaultValue);
42  
43      public long getLong(Object bean, String param);
44  
45      public long getLong(Object bean, String param, long defaultValue);
46  
47      public Object getObject(Object bean, String param);
48  
49      public Object getObject(Object bean, String param, Object defaultValue);
50  
51      public String getString(Object bean, String param);
52  
53      public String getString(Object bean, String param, String defaultValue);
54  
55      public void setProperty(Object bean, String param, Object value);
56  
57  }