net.sf.nakeduml.textmetamodel.TextWorkspace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metamodel Show documentation
Show all versions of metamodel Show documentation
A uml code generator and execution engine
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;
}
}