The SVG Parser allows you to convert your SVG exported Unified Modeling Language (UML) class diagrams to Java class template files. The UML class diagrarm must be created in Microsoft Visio 2016, and exported as an SVG file without Visio data. To ensure the Java template classes are correctly generated the UML class diagram needs to follow a set of strict guidelines.
Name: Tom Cummins
Name: Anil Raham
- [Java 1.8] (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- [Apache Maven] (https://maven.apache.org/)
The coding style for the artefact should be kept to specific guidelines.
final List<String> stringList = new ArrayList<>();
for( String str : stringList )
{
if( str.equalsIgnoreCase( "Hello World!" ) )
{
System.out.println( str );
}
else
{
System.out.println( "No luck!" );
}
}
{
and}
should always be on a new line.- After
(
and before)
a - Between each method and class declaration there should be two line breaks
- Any arguments, variables or methods should be declared final if they are not going to be reassigned
public boolean isUserLoggedIn( final String userID )
- Each tab is equal to 4 spaces, and everything should be tabbed correctly
- Any new code should be commented if immediately it does not make logical sense
To ensure that the Java template classes are generated correctly from the exported SVG diagram you will need to ensure the UML class diagram is formatted to the following specifications.
- Classes cannot be inline with each other
- Ensure that variables and methods contain all relevant information
- Including; Access type, return type, name, and any arguments required. (See screenshot below)
- Ensure spacing is correct on all members and methods
- Ensure Classes, Interfaces and Enums are created by using the correct identifiers in Visio