|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPropertiesManager
A properties manager specification.
Method Summary | ||
---|---|---|
|
createMemento(T bean)
Create a memento for the bean. |
|
java.util.List<Property> |
getProperties(java.lang.Object bean)
Return all the properties of a bean. |
|
java.lang.Object |
getProperty(java.lang.Object bean,
Property property)
Return the value of a property. |
|
java.lang.Object |
getProperty(java.lang.Object bean,
java.lang.String property)
Return the value of a property. |
|
int |
hashCode(java.lang.Object bean)
Generate a hashcode for the bean. |
|
void |
restoreMemento(java.lang.Object bean,
java.lang.Object memento)
Restore the state of the memento. |
|
java.lang.String |
toString(java.lang.Object bean)
Generate a toString() String based on all the properties of the bean. |
Methods inherited from interface org.jtheque.core.managers.ActivableManager |
---|
isEnabled, setEnabled |
Methods inherited from interface org.jtheque.core.managers.IManager |
---|
close, init, preInit |
Method Detail |
---|
java.util.List<Property> getProperties(java.lang.Object bean) throws PropertyException
bean
- The bean to extract the properties from.
PropertyException
- If an errors occurs during the recuperation of the properties.java.lang.Object getProperty(java.lang.Object bean, Property property)
bean
- The bean to get the property value from.property
- The property.
java.lang.Object getProperty(java.lang.Object bean, java.lang.String property)
bean
- The bean to get the property value from.property
- The property.
<T> T createMemento(T bean)
T
- The class of the bean.bean
- The bean to create the memento from.
java.lang.String toString(java.lang.Object bean)
bean
- The bean.
int hashCode(java.lang.Object bean)
bean
- The bean.
void restoreMemento(java.lang.Object bean, java.lang.Object memento)
bean
- The bean.memento
- The memento.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |