users@jaxb.java.net

indexed collections

From: Manish Sethi <msethi_at_noida.manystreams.com>
Date: Sat, 19 Jul 2003 14:20:44 +0530

If a collection property is customized as of indexed type jaxb generates the
following methods related to that property

 Property[] getProperty()
 Property getProperty(int idx)
 int getProperty()
 Property setProperty(int idx, Property value)
 void setProperty(Property[] values)


I thing one more (following) method would have been quite useful

void addProperty(Property value)

As of now to achieve the same result I'll have to write follwing code that
looks very cumbersome...

Property[] props = ele.getProperty();
List list = Arrays.asList();
List list1 = new ArrayList(list);
list1.add(objectFactory.createProperty());
ele.setProperty((Property[])list1.toArray(new Property[0]))


Am I missing s.thing??