|
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)
OclFactory
instanceof
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 OclFactory
OclAny
,
OclCollection
,
OclString
public OclRoot getOclRepresentationForNull(Class c)
getOclRepresentationForNull
in interface OclFactory
public OclBoolean getOclRepresentationFor(boolean b)
OclFactory
OclBoolean
objects.
getOclRepresentationFor
in interface OclFactory
public OclRoot getOclRepresentationFor(byte b)
getOclRepresentationFor
in interface OclFactory
OclInteger
objectpublic OclRoot getOclRepresentationFor(short s)
getOclRepresentationFor
in interface OclFactory
OclInteger
objectpublic OclRoot getOclRepresentationFor(int i)
getOclRepresentationFor
in interface OclFactory
OclInteger
objectpublic OclRoot getOclRepresentationFor(long l)
getOclRepresentationFor
in interface OclFactory
OclInteger
objectpublic OclRoot getOclRepresentationFor(float f)
getOclRepresentationFor
in interface OclFactory
OclReal
objectpublic OclRoot getOclRepresentationFor(double d)
getOclRepresentationFor
in interface OclFactory
OclReal
objectpublic OclRoot getOclRepresentationFor(char c)
getOclRepresentationFor
in interface OclFactory
OclString
objectpublic OclState getOclStateFor(String s)
getOclStateFor
in interface OclFactory
OclStateAdapter
public Object reconvert(Class targetType, OclRoot oclObject)
OclFactory
reconvert
in interface OclFactory
public 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 |