[jdom-interest] Attribute type constant names

Elliotte Rusty Harold elharo at metalab.unc.edu
Sun Apr 28 04:50:50 PDT 2002


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 | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|           The XML Bible, 2nd Edition (IDG Books, 2001)             |
|             http://www.cafeconleche.org/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:   http://www.cafeaulait.org/     | 
|  Read Cafe con Leche for XML News:  http://www.cafeconleche.org/   |
+----------------------------------+---------------------------------+






More information about the jdom-interest mailing list