cz.cuni.pogamut.introspection
Class IntrospectableProxyUnion

java.lang.Object
  extended by cz.cuni.pogamut.introspection.DefaultIntrospectableProxy<IntrospectableProxy[]>
      extended by cz.cuni.pogamut.introspection.IntrospectableProxyUnion
All Implemented Interfaces:
IntrospectableProxy

public class IntrospectableProxyUnion
extends DefaultIntrospectableProxy<IntrospectableProxy[]>

Union of properties and children of two introspectable proxies.


Field Summary
protected  java.lang.String name
           
(package private)  IntrospectableProxy[] proxies
           
 
Constructor Summary
IntrospectableProxyUnion(IntrospectableProxy first, IntrospectableProxy second)
          Creates a new instance of IntrospectableProxyUnion
 
Method Summary
 void addIntrospectableProxyChangeListener(IntrospectableProxyChangeListener listener)
           
 void closeIntrospection()
          This should clean up any bindings the IntrospectableProxy might have with the object it introspects to allow GC collect the object.
protected  IntrospectableProxy[] computeChildren(IntrospectableProxy[] object)
          Computes list of introspectable children of object to be introspected.
protected  Property[] computeProperties(IntrospectableProxy[] object)
          Computes list of properties of object to be introspected.
 java.lang.String getName()
          Returns getProxiedObject().toString(); It is strongly recomended to override this method.
 void removeIntrospectableProxyChangeListener(IntrospectableProxyChangeListener listener)
           
 
Methods inherited from class cz.cuni.pogamut.introspection.DefaultIntrospectableProxy
getChildren, getProperties, getProxiedObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxies

IntrospectableProxy[] proxies

name

protected java.lang.String name
Constructor Detail

IntrospectableProxyUnion

public IntrospectableProxyUnion(IntrospectableProxy first,
                                IntrospectableProxy second)
Creates a new instance of IntrospectableProxyUnion

Method Detail

computeProperties

protected Property[] computeProperties(IntrospectableProxy[] object)
Description copied from class: DefaultIntrospectableProxy
Computes list of properties of object to be introspected.

Specified by:
computeProperties in class DefaultIntrospectableProxy<IntrospectableProxy[]>
Parameters:
object - Object to be introspected.
Returns:
Array of properties.

computeChildren

protected IntrospectableProxy[] computeChildren(IntrospectableProxy[] object)
Description copied from class: DefaultIntrospectableProxy
Computes list of introspectable children of object to be introspected.

Specified by:
computeChildren in class DefaultIntrospectableProxy<IntrospectableProxy[]>
Parameters:
object - Object to be introspected.
Returns:
Array of introspectable children.

getName

public java.lang.String getName()
Description copied from class: DefaultIntrospectableProxy
Returns getProxiedObject().toString(); It is strongly recomended to override this method.

Specified by:
getName in interface IntrospectableProxy
Overrides:
getName in class DefaultIntrospectableProxy<IntrospectableProxy[]>
Returns:
getProxiedObject().toString();

addIntrospectableProxyChangeListener

public void addIntrospectableProxyChangeListener(IntrospectableProxyChangeListener listener)

removeIntrospectableProxyChangeListener

public void removeIntrospectableProxyChangeListener(IntrospectableProxyChangeListener listener)

closeIntrospection

public void closeIntrospection()
This should clean up any bindings the IntrospectableProxy might have with the object it introspects to allow GC collect the object.