You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Frank Griffin <ft...@ntplx.net> on 2000/12/14 17:40:48 UTC

Re:[FEEDBACK REQUESTED]

This latest Java Tutor has three articles on polymorphism, which seems to be exactly what you need.  In essence, you define an "Property" interface, and then have each of your xxxProperty classes implement it.  The methods of the interface are used to manipulate the properties and are designed to work with different types.

One of the articles also goes into a neat technique for storing properties of different types in a Hashtable within a single class, which looks like it might be useful to you as well...