Dresden OCL Toolkit

tudresden.ocl.lib
Interface FeatureListener

All Known Implementing Classes:
Invariant

public interface FeatureListener

An interface, listening the access to object attributes and methods by the ocl library. This happens in getFeature methods of OclAnyImpl only.

See Also:
OclAnyImpl.getFeature(String), OclAnyImpl.getFeatureQualified(String,Object), OclAnyImpl.getFeatureAsSequence(String), OclAnyImpl.getFeature(String,Object[])

Method Summary
 void onField(Field f, Object o)
          Is called, when the ocl library accesses an attribute of an application object.
 void onMethod(Method m, Object o)
          Is called, when the ocl library accesses a method of an application object.
 

Method Detail

onField

public void onField(Field f,
                    Object o)
Is called, when the ocl library accesses an attribute of an application object.

See Also:
OclAnyImpl.getFeature(String), OclAnyImpl.getFeatureQualified(String,Object), OclAnyImpl.getFeatureAsSequence(String)

onMethod

public void onMethod(Method m,
                     Object o)
Is called, when the ocl library accesses a method of an application object. Note, that the ocl library should access query methods (side effect free methods) only, but this is not enforced in any way.

See Also:
OclAnyImpl.getFeature(String,Object[])

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.