|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.introspection.Feature
cz.cuni.amis.introspection.Folder
cz.cuni.amis.introspection.AbstractObjectFolder<Object>
cz.cuni.amis.introspection.java.ReflectionObjectFolder
public class ReflectionObjectFolder
Implementation of automatic object introspection using Java Reflection API.
Primitive public fields of object (see javadoc fo list of primitive types)
marked by PogProp annotation are returned as Properties,
unknown more complicated types implementing Introspectable interface
are returned as Children for further introspection.
TODO annotations arent working ... fix it
All returned properties are for now uneditable. Just for the sake of simplicity.
THIS EXAMPLE IMPLEMENTATION DOESN'T DEAL WITH INHERITANCE.
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.introspection.Feature |
|---|
name |
| Constructor Summary | |
|---|---|
ReflectionObjectFolder(String name,
Object object)
Creates a new instance of JavaReflectionProxy |
|
| Method Summary | |
|---|---|
protected Folder[] |
computeFolders(Object object)
All data fields of introspected object that implement Introspectable interface are added to the list of children. |
protected Property[] |
computeProperties(Object object)
All data fields which are marked by @PogProp annotation and PropertyEditorManager can find editor for them are recognized as Properties of introspectable proxy and are returned by this method. |
protected Collection<Property> |
getDeclaredProperties(Class cls,
Object object)
Get all Properties from given class. |
protected Collection<Folder> |
getDeclaredProxies(Class cls,
Object object)
Get all IntrospectableProxies from given class. |
| Methods inherited from class cz.cuni.amis.introspection.AbstractObjectFolder |
|---|
getFolders, getProperties, getProxiedObject |
| Methods inherited from class cz.cuni.amis.introspection.Folder |
|---|
createProperties, createProperties, getFolder, getProperty, loadFromProperties, loadFromProperties |
| Methods inherited from class cz.cuni.amis.introspection.Feature |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionObjectFolder(String name,
Object object)
| Method Detail |
|---|
protected Collection<Property> getDeclaredProperties(Class cls,
Object object)
protected Collection<Folder> getDeclaredProxies(Class cls,
Object object)
protected Property[] computeProperties(Object object)
computeProperties in class AbstractObjectFolder<Object>object - Object to be introspected.
protected Folder[] computeFolders(Object object)
Introspectable interface are added to the list of children.
computeFolders in class AbstractObjectFolder<Object>object - Object to be introspected.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||