Hi folks,

I want to implemt my own ScriptHelper, but I have big problem to access for
PClassifier.

Here is my sample Code:

public class MyHelper extends SimpleOOHelper {
     public Object getAssociationWithStereoTyp(Object clazz, String stereo)
{

        if (clazz instanceof PClassifier) {
            System.out.println("PClassifier");  // Never
        }

        if (clazz instanceof Classifier) {
            Classifier cl = PClassifier.newInstance(this, (Classifier)
clazz);
            Collection col = this.getAssociationEnds(cl);
            System.out.println("col = " + col);

        }

        return "nix";
    }
...

I receive the folowing Exception:

org.andromda.core.anttasks.ClassTemplateProcessingException: Error
processing velocity script on Perso
nViewModel.java: Invocation of method 'getAssociationWithStereoTyp' in 
class de.oomodeller.andromdahelper.MyHelper threw exception class
java.lang.ClassCastException : $Proxy0

How can I use ScriptHelper-Methods with the "ProxyClassifier"?

-- 
NEU F�R ALLE - GMX MediaCenter - f�r Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gru�, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse f�r Mail, Message, More! +++



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to