|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.lib.OclAny
tudresden.ocl.lib.OclAnyImpl
This class represents the OCL type OclAny. It implements the properties defined for this type and gives access to fields of application objects using Java Reflection.
Field Summary | |
private Object |
applicationObject
the application object that is encapsulated by this instance of OclAnyImpl |
private static FeatureListener |
featurelistener
|
Fields inherited from class tudresden.ocl.lib.OclAny |
|
Constructor Summary | |
OclAnyImpl(int dummy,
String reason)
constructor for the undefined OclAnyImpl |
|
OclAnyImpl(Object o)
A public constructor for OclAnyImpl. |
Method Summary | |
static void |
clearFeatureListener()
|
boolean |
equals(Object o)
|
static Method |
findMethod(Class myclass,
String name,
Class[] params)
|
OclRoot |
getFeature(String attributeName)
Calls getFeatureQualified without qualifiers. |
OclRoot |
getFeature(String methodName,
Object[] params)
To call side-effect free methods of an object, invoke this method with the method name as String and the appropriate parameters. |
OclSequence |
getFeatureAsSequence(String name)
|
OclRoot |
getFeatureQualified(String attributeName,
Object qualifier)
The attributes of application objects can be queried through this method. |
Object |
getObject()
|
int |
hashCode()
|
OclBoolean |
isEqualTo(Object o)
two OclAnyImpl objects are equal if their encapsulated application objects are identical (NOT equal) |
OclBoolean |
isNotEqualTo(Object o)
Returns the negated result of isEqualTo . |
OclType |
oclType()
This property is no longer present in OCL 1.3. |
static void |
setFeatureListener(FeatureListener f)
|
String |
toString()
|
Methods inherited from class tudresden.ocl.lib.OclAny |
getFeatureAsCollection, getUndefinedReason, isUndefined, oclAsType, oclInState, oclIsKindOf, oclIsTypeOf |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private Object applicationObject
private static FeatureListener featurelistener
Constructor Detail |
public OclAnyImpl(Object o)
public OclAnyImpl(int dummy, String reason)
Method Detail |
public OclBoolean isEqualTo(Object o)
isEqualTo
in interface OclRoot
isEqualTo
in class OclAny
public OclBoolean isNotEqualTo(Object o)
OclRoot
isEqualTo
.
isNotEqualTo
in interface OclRoot
isNotEqualTo
in class OclAny
isEqualTo
public OclRoot getFeature(String attributeName)
getFeature
in interface OclRoot
getFeature
in class OclAny
getFeatureQualified(java.lang.String, java.lang.Object)
public OclRoot getFeatureQualified(String attributeName, Object qualifier)
public
fields
can be queried.
attributeName
- the name of the feature, as a java.lang.Stringpublic static Method findMethod(Class myclass, String name, Class[] params)
public OclRoot getFeature(String methodName, Object[] params)
If an exception occurs in the called method or in accessing it, an undefined value is returned.
public OclSequence getFeatureAsSequence(String name)
public boolean equals(Object o)
public int hashCode()
public String toString()
public OclType oclType()
oclType
in class OclAny
public Object getObject()
public static void setFeatureListener(FeatureListener f)
public static void clearFeatureListener()
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |