N
Novice
This is actually a discussion that Lew and I started in the "Aspect
Qustions" thread but it is so unwieldy know that I'm pushing it into a
new thread.
Here's the context so that everyone knows what the subject of discussion
is. While this started as sort of a side conversation between Lew and I,
as far as I'm concerned, anyone who has something to contribute is more
than welcome to jump in on this. Even if you say the same thing as
someone else, your wording might be more effective in making me see the
point than the way the other person said it. Anyway, here's where we were
in the other thread.
At the moment, I have a main program that simply generates each document
in turn. It's called ResumeFileGenerator. Its constructor gets the
resource bundle that drives the creation of the resumes. Each resume
format is generated by a separate class and is passed an object that
represents the data needed in the resume and the path and file name to be
generated by that class. Then, the supporting documents are each
generated by their own separate classes. They too are told the path and
file name that should be generated but are not passed the resume object
since they don't need it.
Sorry, that was sloppy shorthanding on my part. I meant the
ResourceBundles that are based on ListResourceBundles, as shown at
http://docs.oracle.com/javase/tutorial/i18n/resbundle/list.html, versus
the "text" and "message" types which are basically properties files. Some
of my data consists of arrays like the list of editors I've used and the
list of word processing programs I'm familiar with so the simpler
property file type resource bundles don't work well for that.
It's an interface I created as opposed to one that is in the API. It is
called ResumeFileWriter and has one empty method in it called
writeResume. It has two parameters, a String that identifies the path and
name of the file to be written and a Resume object that refers to the
data contained in the Resource Bundle. Each of the classes that writes an
actual resume (as opposed to a supporting file) implements it.
It's entirely likely that this interface should do a lot more than it
currently does. That's why I'm very curious to get your take on this.
I've also got an abstract class called ResumeFileCreator. It has four
concrete methods: deleteFile, openOutputFile, closeOutputFile and
getGeneratedBy (which simply generates a string containing the name of a
class and the current date and time which I use to create comments in
each of the files that are written). Each of the classes that writes a
resume or supporting file subclasses ResumeFileCreator.
Works for me
Qustions" thread but it is so unwieldy know that I'm pushing it into a
new thread.
Here's the context so that everyone knows what the subject of discussion
is. While this started as sort of a side conversation between Lew and I,
as far as I'm concerned, anyone who has something to contribute is more
than welcome to jump in on this. Even if you say the same thing as
someone else, your wording might be more effective in making me see the
point than the way the other person said it. Anyway, here's where we were
in the other thread.
What are the overall modules? For example: "Obtain resume from single
file", "Export to format X", "Generate references document", ...
At the moment, I have a main program that simply generates each document
in turn. It's called ResumeFileGenerator. Its constructor gets the
resource bundle that drives the creation of the resumes. Each resume
format is generated by a separate class and is passed an object that
represents the data needed in the resume and the path and file name to be
generated by that class. Then, the supporting documents are each
generated by their own separate classes. They too are told the path and
file name that should be generated but are not passed the resume object
since they don't need it.
Sorry, "list" type?
Sorry, that was sloppy shorthanding on my part. I meant the
ResourceBundles that are based on ListResourceBundles, as shown at
http://docs.oracle.com/javase/tutorial/i18n/resbundle/list.html, versus
the "text" and "message" types which are basically properties files. Some
of my data consists of arrays like the list of editors I've used and the
list of word processing programs I'm familiar with so the simpler
property file type resource bundles don't work well for that.
What interface? What method?
It's an interface I created as opposed to one that is in the API. It is
called ResumeFileWriter and has one empty method in it called
writeResume. It has two parameters, a String that identifies the path and
name of the file to be written and a Resume object that refers to the
data contained in the Resource Bundle. Each of the classes that writes an
actual resume (as opposed to a supporting file) implements it.
It's entirely likely that this interface should do a lot more than it
currently does. That's why I'm very curious to get your take on this.
I've also got an abstract class called ResumeFileCreator. It has four
concrete methods: deleteFile, openOutputFile, closeOutputFile and
getGeneratedBy (which simply generates a string containing the name of a
class and the current date and time which I use to create comments in
each of the files that are written). Each of the classes that writes a
resume or supporting file subclasses ResumeFileCreator.
We'll go step by step.
Works for me