1
Automation Interface, Add-Ins and Tools / Java API and efficient copy of elements...
« on: January 26, 2010, 12:59:32 am »
I use Java API to copy a class from a package to an other one.
In my case, I can get some enumeration classes, which contain more than 5000 attributes (for 5000 distinct values...)
To do the copy, I create each element, based on the value of the original package. So in that case, I create a new class, and make a loop (5000 times) to add attributes one after the other one. This takes a long time to process...
Is there a better way to do this ?
For instance :
- use an API which allows to add several attributes at once ?
- use an API which allows to copy a class from a package to an other one or a package to an other one ?
(I haven't found such APIs yet...)
Thanks for any information or assistance...
Christophe
In my case, I can get some enumeration classes, which contain more than 5000 attributes (for 5000 distinct values...)
To do the copy, I create each element, based on the value of the original package. So in that case, I create a new class, and make a loop (5000 times) to add attributes one after the other one. This takes a long time to process...
Is there a better way to do this ?
For instance :
- use an API which allows to add several attributes at once ?
- use an API which allows to copy a class from a package to an other one or a package to an other one ?
(I haven't found such APIs yet...)
Thanks for any information or assistance...
Christophe