[jdom-interest] RE: Need help
Syloke Soong
ssoong at protedyne.com
Mon Mar 19 14:39:26 PST 2007
BTW, despite last couple of weeks' debate about issuing a
generics-friendly JDOM version, I am thinking we could also do it this
way in Java1.5:
public List <Element> cloneChildren(Element element)
{
List <Element>clonedElementList = new Vector();
List <Element>origElementList = element.getChildren();
for (Element ej: origElementList)
clonedElementList.add((Element)ej.clone());
return clonedElementList;
}
I have not tried but I'm going to. Can anyone tell me if the above
should work? It compiled successfully, though. If I could do it this
way, what is the fuss on issuing a generics-friendly JDOM version all
about?
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Even though this company takes every precaution to ensure this email is virus-free, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Protedyne Corporation, 1000 Day Hill Rd, Windsor, CT 06095, USA,
www.protedyne.com
More information about the jdom-interest
mailing list