[jdom-interest] Attribute type constant names

Elliotte Rusty Harold elharo at metalab.unc.edu
Sun May 4 12:05:40 PDT 2003


Another one from last May that wasn't addressed then:

The attribute type constant names in org.jdom.Attribute are redundant. They are

Attribute.CDATA_ATTRIBUTE
Attribute.ID_ATTRIBUTE
Attribute.IDREFS_ATTRIBUTE, etc.

I suggest either

Attribute.CDATA_TYPE
Attribute.ID_TYPE
Attribute.IDREFS_TYPE etc.

or just

Attribute.CDATA
Attribute.ID
Attribute.IDREFS

There's no need to use the word "Attribute" twice here.
-- 
Elliotte Rusty Harold
elharo at metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA



More information about the jdom-interest mailing list