|
||||||||||
| 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<T>
public abstract class AbstractObjectFolder<T>
This is wrapper class for introspectable objects. You have to give it
object to be introspected in the constructor and implement methods
computing array of properties and array of children objects
(computeProperties() and computeChildren()).
This abstract implementation caches computed results and returns them by
getProperties() and getChildren() methods.
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.introspection.Feature |
|---|
name |
| Constructor Summary | |
|---|---|
AbstractObjectFolder(String name,
T object)
Creates a new instance of Folder and bind it with given object. |
|
| Method Summary | |
|---|---|
protected abstract Folder[] |
computeFolders(T object)
Computes list of introspectable children of object to be introspected. |
protected abstract Property[] |
computeProperties(T object)
Computes list of properties of object to be introspected. |
Folder[] |
getFolders()
Returns lazy initialized list of children. |
Property[] |
getProperties()
Returns lazy initialized list of properties. |
protected T |
getProxiedObject()
Return object proxied by this Folder. |
| 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 AbstractObjectFolder(String name,
T object)
object - Object to be introspected.| Method Detail |
|---|
public Folder[] getFolders()
throws IntrospectionException
getFolders in class FolderIntrospectionException
public Property[] getProperties()
throws IntrospectionException
getProperties in class FolderIntrospectionException
protected abstract Property[] computeProperties(T object)
throws IntrospectionException
object - Object to be introspected.
IntrospectionException
protected abstract Folder[] computeFolders(T object)
throws IntrospectionException
object - Object to be introspected.
IntrospectionExceptionprotected T getProxiedObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||