01: package com.xoetrope.data.pojo;
02:
03: import net.xoetrope.xui.data.XModel;
04:
05: /**
06: * <p> Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
07: * the GNU Public License (GPL), please see license.txt for more details. If
08: * you make commercial use of this software you must purchase a commercial
09: * license from Xoetrope.</p>
10: */
11: public interface XPropertiesRetriever {
12: /**
13: * Retrieves the value of the given property for the given model node
14: * @param model model which property is to be returned
15: * @param property property to be returned
16: * @return value of the property
17: */
18: public Object getPropertyValue(XPojoModelVis model, String property);
19:
20: /**
21: * Saves the given property value
22: * @param model model which property is to be saved
23: * @param property the name of the property to be saved
24: * @param value value to be saved
25: */
26: public void setPropertyValue(XPojoModelVis model, String property,
27: Object value);
28:
29: /**
30: * Removes the given property
31: * @param model model whose property is to be removed
32: * @param property the name of the property
33: */
34: public void removeProperty(XPojoModelVis model, String property);
35:
36: /**
37: * Indicates whether the property of the given model has been stored
38: * @param model the model which property is to be queried
39: * @return true if the property value has been set, false otherwise
40: */
41: public boolean containsProperty(XPojoModelVis model, String property);
42:
43: }
|