All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.nakeduml.detachment.NakedElementDetachor Maven / Gradle / Ivy

The newest version!
package net.sf.nakeduml.detachment;

import java.util.Collection;

import net.sf.nakeduml.feature.TransformationStep;
import net.sf.nakeduml.feature.visit.VisitorAdapter;
import net.sf.nakeduml.metamodel.core.INakedElement;
import net.sf.nakeduml.metamodel.core.INakedPackage;
import net.sf.nakeduml.metamodel.workspace.INakedModelWorkspace;

/**
 * A visitor the is invoked when (incremental) model updates require certain
 * elements that were linked before to be detached from each other
 */
// TODO go through all the model element linkers and make sure that the linked
// elements are detached
public abstract class NakedElementDetachor extends VisitorAdapter implements TransformationStep {
	protected INakedModelWorkspace workspace;

	@Override
	public Collection getChildren(INakedElement root) {
		return root.getOwnedElements();
	}

	public void initialize(INakedModelWorkspace workspace) {
		this.workspace = workspace;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy