Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » how to delete class.attribute(property)
how to delete class.attribute(property) [message #622671] Fri, 29 June 2007 17:37
JD is currently offline JDFriend
Messages: 13
Registered: July 2009
Junior Member
Hi All:
I have a class. Some of attribtues are private members, and I'd like to
programtically delete all private members and only keep public
class.members. When running following code, it throws exception
org.eclipse.emf.common.util.BasicEList$EIterator.checkModCou nt. Could any
one help to see what's wrong?

List attList = clz.getAttributes();
ListIterator lstIt = attList.listIterator(attList.size());
Property prpt = (Property) lstIt.previous();
vk = prpt.getVisibility().getValue();
if (vk == VisibilityKind.PRIVATE){
System.out.println("Destroy property: " + prpt.getQualifiedName());
Previous Topic:Referencing a uml model element from a ecore model
Next Topic:Problem with navigable owned end
Goto Forum:

Current Time: Fri Apr 10 00:38:41 GMT 2020

Powered by FUDForum. Page generated in 0.01923 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top