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

net.sf.nakeduml.textmetamodel.TextWorkspace Maven / Gradle / Ivy

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

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

public class TextWorkspace extends TextFileNode {
	Set roots = new HashSet();

	public TextWorkspace() {
		super("Workspace");
	}

	public TextOutputRoot findOrCreateTextOutputRoot(String name) {
		for (TextOutputRoot r : roots) {
			if (r.name.equals(name)) {
				return r;
			}
		}
		TextOutputRoot result = new TextOutputRoot(this, name);
		roots.add(result);
		return result;
	}

	public Collection getTextOutputRoots() {
		return roots;
	}

	@Override
	public boolean hasContent(){
		return true;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy