Re: Writers block on complex object model



Phy6 wrote:
Hi, I am trying to find an easily extended way to write compose
concrete objects for my application.

The objects I am using are all things (nouns) like Customer, Database,
Shop, Task, Year, etc. etc. LOTS of classes like this.

I have GUI components (Tapestry) that display messages regarding the
object or objects.

I want to be able to do something like Customer.plural to get the
String "Customers". I'd like these conjugates available statically,
so no instance is needed (In case the object is null)
I have 4 conjugates for each noun: singular, plural, singular
possessive, plural possessive.

How about a ResourceBundle that defines each of those four names off a key for each class? The class can look up its plurals and possessives for display purposes.

bundle.getString( Task.getPluralPossessiveKey() )

--
Lew
.



Relevant Pages

  • Re: Any iMac rumors?
    ... Some of these nouns, for example staff, actually combine ... In AmE, collective nouns are usually singular in construction: ... teams are usually treated as plurals even if the form of the name is ...
    (comp.sys.mac.system)
  • Re: adj
    ... "unchangeable" as to gender agreement with adjectives and verbs. ... the common plural is used for plurals of nouns of whatever ...
    (sci.lang)
  • Re: Indonesian and Esperanto
    ... >> just ignored tense and whatever is used to modify nouns to show they are ... > I was a bit unclear in that Indonesian has plurals. ... What would be interesting would be to see tense attached to ... A language like that might not be comprehensible to humans. ...
    (sci.lang)
  • Re: "dual" number - another question
    ... > According to R..Quirk et al: A comprehnesive grammar of the English ... > glasses, trousers, binoculars, bellows are called "summation plurals". ... > To be honest, I think these nouns - to be strict, objects indicated by ...
    (alt.usage.english)
  • Re: EMU Bogies
    ... The apostrophe has three uses: ... to form possessives of nouns ... to indicate certain plurals of lowercase letters. ...
    (uk.railway)

Loading