|
Dresden OCL Toolkit | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttudresden.ocl.lib.DefaultOclFactory
This class is the default implementation of the OclFactory
interface. It is suitable for Java code generated by Argo and Rational
Rose.
| Constructor Summary | |
DefaultOclFactory()
|
|
| Method Summary | |
OclBoolean |
getOclRepresentationFor(boolean b)
In contrast to all other methods, this one is restricted to return OclBoolean objects. |
OclRoot |
getOclRepresentationFor(byte b)
|
OclRoot |
getOclRepresentationFor(char c)
|
OclRoot |
getOclRepresentationFor(double d)
|
OclRoot |
getOclRepresentationFor(float f)
|
OclRoot |
getOclRepresentationFor(int i)
|
OclRoot |
getOclRepresentationFor(long l)
|
OclRoot |
getOclRepresentationFor(Object o)
A sensible implementing class will implement this operation using the instanceof operator to return the correct
OCL representation for the object depending on its type. |
OclRoot |
getOclRepresentationFor(short s)
|
OclRoot |
getOclRepresentationForNull(Class c)
Return an OCL representation of the null value of the given type. |
OclSequence |
getOclSequenceFor(Object o)
|
OclState |
getOclStateFor(String s)
|
Object |
reconvert(Class targetType,
OclRoot oclObject)
re-transform oclObject into an object of an application type; an implementing class should adapt this method to the transformation implemented in other methods of this class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultOclFactory()
| Method Detail |
public OclRoot getOclRepresentationFor(Object o)
OclFactoryinstanceof operator to return the correct
OCL representation for the object depending on its type.
Collections, Strings, and application objects will propably result in
OclCollection, OclString and OclAny respectively. It might be necessary
to take special care of arrays of different type.
getOclRepresentationFor in interface OclFactoryOclAny,
OclCollection,
OclStringpublic OclRoot getOclRepresentationForNull(Class c)
getOclRepresentationForNull in interface OclFactorypublic OclBoolean getOclRepresentationFor(boolean b)
OclFactoryOclBoolean objects.
getOclRepresentationFor in interface OclFactorypublic OclRoot getOclRepresentationFor(byte b)
getOclRepresentationFor in interface OclFactoryOclInteger objectpublic OclRoot getOclRepresentationFor(short s)
getOclRepresentationFor in interface OclFactoryOclInteger objectpublic OclRoot getOclRepresentationFor(int i)
getOclRepresentationFor in interface OclFactoryOclInteger objectpublic OclRoot getOclRepresentationFor(long l)
getOclRepresentationFor in interface OclFactoryOclInteger objectpublic OclRoot getOclRepresentationFor(float f)
getOclRepresentationFor in interface OclFactoryOclReal objectpublic OclRoot getOclRepresentationFor(double d)
getOclRepresentationFor in interface OclFactoryOclReal objectpublic OclRoot getOclRepresentationFor(char c)
getOclRepresentationFor in interface OclFactoryOclString objectpublic OclState getOclStateFor(String s)
getOclStateFor in interface OclFactoryOclStateAdapter
public Object reconvert(Class targetType,
OclRoot oclObject)
OclFactory
reconvert in interface OclFactorypublic OclSequence getOclSequenceFor(Object o)
getOclSequenceFor in interface OclFactory
|
Dresden OCL Toolkit | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||