Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created April 20, 2016 14:27
Show Gist options
  • Save edipofederle/ad18f7f8e8b1dce5632302c15bf553e8 to your computer and use it in GitHub Desktop.
Save edipofederle/ad18f7f8e8b1dce5632302c15bf553e8 to your computer and use it in GitHub Desktop.
import org.junit.Test;
import arquitetura.builders.ArchitectureBuilder;
import arquitetura.representation.Architecture;
import arquitetura.representation.Class;
import arquitetura.representation.Concern;
import mestrado.arquitetura.factories.Klass;
public class Main {
@Test
public void foo() throws Exception{
ArchitectureBuilder builder = new ArchitectureBuilder();
Architecture arch = builder.create("/Users/edipo/Downloads/PLAs/agm/agm.uml");
for(Class klass : arch.getAllClasses()){
System.out.println("Class name: " + klass.getName());
System.out.println("Concern for the Class:");
// Get only concern belongs to class itself
for(Concern concern : klass.getOwnConcerns())
System.out.println("\t->" + concern.getName());
System.out.println("\n");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment