>> Sorry, but I didn't knew there is FAQ. Where can I find it?
>
><http://java.apache.org/> where you downloaded the software.
Oh, FAQ system is on again. I didn't knew that.
>> Second: it's very important for my project to get elements contained in
>> ConcreteElement in the same order as they were added. Are you interested to
>> incorporate those changes into ConcreteElement?
>
>i believe that elements already are in order. please be a bit more
>descriptive.
If I get elements with concreteElements.elements(), the are not returned in
the same order as they are put in because the enumeration is generated from
Hashtable. I'm using 1.1.
I had to copy all elements from one concrete element to other, but they are
mixed. I also had to do something on all even elements, but it's not
working because enumeration order is not same as visual (or registryList)
order, so I had to add this:
public Enumeration sortedElements() {
int size = registryList.size();
Vector sortedElements = new Vector(size);
for (int i = 0; i < size; ++i) {
sortedElements.add(getElement((String) registryList.elementAt(i)));
}
return sortedElements.elements();
}
Zeljko Trogrlic
____________________________________________________________
@-solutions GmbH
Grillparzer Str. 14; D-81675 Muenchen
Tel.: 089/45 79 0-351; Fax.: 089/45 79 0-321
Email: mailto:[EMAIL PROTECTED] WWW: http://www.at-solutions.de
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]