From: Anthony M. <to...@am...> - 2003-05-28 18:06:26
|
Rudie, 1) transfromClass vs transformClassname - I fixed the source to match the documentation. It is now 'transformClassname'. 2) more functions in the StringUtilHelper - we can add more functions if you'd like. Here is my suggestion: instead of implementing all the string functions on the transform class, make another class and put the helper methods on that class. Implement a method on your transform that creates your new string helper. Like so: $myStringHelper = $transform.myStringHelper Then at some point, when you are happy with the set of methods you've put on the your string helper, send us the code for that class. You can send us the code by submitting a patch on sourceforge to AndroMDA and sending us an email saying that you did this. We can then look at you new string helper class in isolation from your transform class and decide which methods to add to the AndroMDA StringUtilHelper. 3) I wasn't sure exactly what you meant? So, I'll make a bit of a guess ... a) Is the requirement that you'd like to append generated information to an existing file? Or b) Is it that you'd like to create a file with information about all of the model elements? If it is (a) then we currently have no support for doing this, but if you desparetly needed to do this you could probably get something to work with some tricks in a new transform class. If it is (b) then you can do this using existing AndroMDA functionality. In the set of samples there is the 'model-report' sample. It is a very simple example of how to create a file with information about all the model elements. Tony > -----Original Message----- > From: and...@li... > [mailto:and...@li...]On Behalf Of Rudie > Ekkelenkamp > Sent: Wednesday, May 28, 2003 3:23 AM > To: 'and...@li...' > Subject: [Andromda-devel] Extending the $transform object > > > Hi, > > First of all I would like to say that the cartridge system is really great > and allows me to implement my own cartridges very easily! > One of the things I tried to do in the cartridges is to extend > the transform > object by extending the SimpleOOHelper. Problem is that the > CardridgeXMLParser doesn't pick up the attribute as specified in the > documentation. In the source it says: > > String tcn = attributes.getValue("transformClass"); > > According to the docs this should be: > > String tcn = attributes.getValue("transformClassname"); > > Secondly I would love to see some more basic functions in the str > object. I > abuse the tranform object to add methods like toLowerCase and toUpperCase. > Could these be added to the basic StringUtilsHelper? > > Currently I'm building a cartridge for generating XML configuration files > for a Content Management System (MMBase). I'm able te create the datamodel > definition en the Editor configurations. I think it works great! > One thing I'm missing as an option to append to an existing file (I would > like te generate a file that contains information about all model > elements). > Is there a workaround to this, or should the cardridge system be extended? > > > cheers, > > > Rudie Ekkelenkamp > > Finalist IT Group > Java Specialists > ------------------------------------------------------------- > Amsterdam, The Netherlands > Office: +31 10 217 08 00 > Fax: +31 10 280 96 20 > Web: http://finalist.com > ------------------------------------------------------------- > De informatie opgenomen in dit bericht kan vertrouwelijk zijn en > is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht > onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en > de afzender direct te informeren door het bericht te retourneren. > ------------------------------------------------------------- > The information contained in this message may be confidential > and is intended to be exclusively for the addressee. Should you > receive this message unintentionally, please do not use the contents > herein and notify the sender immediately by return e-mail. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > Andromda-devel mailing list > And...@li... > https://lists.sourceforge.net/lists/listinfo/andromda-devel |