User Methods
============

generateDS.py now has the ability to add user methods to the
classes it generates.

The user provides definitions (source) for the methods to be added
and (for each method) a regular expression to identify the names
of classes to which the method should be added.  Then, the
--user-methods command line flag is used to instruct generateDS.py
to add the specified methods to the classes generated in the
superclass file.

A class variable (_member_data_items) providing information about
the member data items of each generated class has also been added.

There is a sample file (gends_user_methods.py in the distribution)
that provides examples of:

- walking the document object tree,
- accessing member data items using the _member_data_items class
  variable,
- getting and setting the values of member data items, and
- determining the type of member data items.

You can read more about this capability in the "User Methods"
section of the documentation:

    http://www.rexx.com/~dkuhlman/generateDS.html#user-methods

You can find the latest version here:

    http://www.rexx.com/~dkuhlman/generateDS-1.10a.tar.gz

and at Source Forge:

    http://sourceforge.net/projects/generateds/

If you consider using this new user methods capability, also think
about the ability to generate subclasses of generated classes
using the -s command line flag and then manually adding methods to
those generated subclasses.  In some situation, this might be a
better solution.

To find out more about generateDS.py, read this:

    http://www.rexx.com/~dkuhlman/generateDS.html

Dave



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to