gang-of-4-patterns AT lists.siebelschool.illinois.edu
Subject: Design Patterns discussion
List archive
- From: "Hainer, Neil" <hainern AT jivanet.net>
- To: <gang-of-4-patterns AT cs.uiuc.edu>
- Subject: [gang-of-4-patterns] Advice Sought Regarding Proper Design
- Date: Tue, 10 Jun 2003 11:25:09 -0400
- List-archive: <http://mail.cs.uiuc.edu/pipermail/gang-of-4-patterns/>
- List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>
Hi,
I was wondering if someone could offer some advice regarding the best design
strategy to use to handle the following situation:
I am using an off the self product that analyzes text documents and produces
a results object, that I can output in XML and/or SGML. I need to output the
results in another markup language called RDF.
To product XML output, something quite similar to the following is done:
process input document producing vendor's results object
Writer xml_writer;
xml_writer.apply( results object, xml output file name);
I could create an RDF_Writer class that uses the same results object and
outputs a file containing RDF statements.
But....
I know I will have to do the same thing for another vendor's document
extraction product. That product will have its own unique results object and
have unique method names.
So....
How can I design my code so I can re-use the RDF code with different vendor's
results objects?
Thanks in advance,
Neil
Neil Hainer
Booz Allen & Hamilton
JIVA System Integration Project
703-289-3881
- [gang-of-4-patterns] Advice Sought Regarding Proper Design, Hainer, Neil, 06/10/2003
- Re: [gang-of-4-patterns] Advice Sought Regarding Proper Design, Andrew Chelyabin, 06/11/2003
- <Possible follow-up(s)>
- RE: [gang-of-4-patterns] Advice Sought Regarding Proper Design, Ray Ye, 06/10/2003
Archive powered by MHonArc 2.6.16.