[jdom-interest] AttributeList or just List in Element?
Elliotte Rusty Harold
elharo at metalab.unc.edu
Fri Apr 19 12:51:12 PDT 2002
In the Element class the protected list of attributes is declared to
have type org.jdom.AttributeList:
/** The attributes of the <code>Element</code>. */
protected AttributeList attributes = new AttributeList(this);
This bothers me because we're exposing a package-private class. For an
implementation that's fine, but I think the interface should be
documented. Would it be reasonable to declare this to just have type
java.util.List? i.e.,
/** The attributes of the <code>Element</code>. */
protected List attributes = new AttributeList(this);
--
+-----------------------+------------------------+-------------------+
| 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