Created
April 20, 2016 14:27
-
-
Save edipofederle/ad18f7f8e8b1dce5632302c15bf553e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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