-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Last polishing in the code (comments basically and docs)
- Loading branch information
Showing
25 changed files
with
52 additions
and
20 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
jsondiscoverer.examples/src/jsondiscoverer/util/ExampleCoreographyBuilder.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2008, 2015 | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Javier Canovas ([email protected]) | ||
*******************************************************************************/ | ||
|
||
|
||
package jsondiscoverer.util; | ||
|
||
import java.io.File; | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,6 @@ | |
* Abstract class to factor some common behavior | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public abstract class AbstractJsonDiscoverer extends HttpServlet { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ | |
* Main servlet to provide access to {@link JsonAdvancedDiscoverer} | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
@WebServlet("/advancedDiscover") | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,6 @@ | |
* ervlet to access to {@link JsonComposer} | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
@WebServlet("/composer") | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ | |
* This servlet gives access to the {@link JsonInjector} | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
@WebServlet("/simpleDiscoverModel") | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ | |
* This servlet allows calculating paths between nodes of the discovered metamodel | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
@WebServlet("/calculatePath") | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,6 @@ | |
* Main class that provides the main access to {@link JsonSimpleDiscoverer} | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
@WebServlet("/simpleDiscoverMetamodel") | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ | |
* LIMIT_LINES to avoid overloading the server. | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
@WebServlet("/getJson") | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
* Simple servlet to know the versions of the other servlets | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
@WebServlet("/status") | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
* Super simple servlet to know the versio running in the server | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
@WebServlet("/version") | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,12 @@ | |
import org.emftools.emf2gv.graphdesc.GraphdescPackage; | ||
import org.emftools.emf2gv.processor.core.StandaloneProcessor; | ||
|
||
/** | ||
* This class traverses a folder and generates the pictures for each model found | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* | ||
*/ | ||
public class ModelDrawer { | ||
private final static Logger LOGGER = Logger.getLogger(ModelDrawer.class.getName()); | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
* Common implementation for JSON sources | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public abstract class AbstractJsonSource { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ | |
* This class provides some helper methods to fill in the metadata in the discovered models | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public class AnnotationHelper { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,14 @@ | |
|
||
import jsondiscoverer.util.DijkstraSolver; | ||
|
||
/** | ||
* This class generates a sequence diagram description for the tool | ||
* js-sequene-diagrams (http://bramp.github.io/js-sequence-diagrams) | ||
* out of a path in an EPackage. | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* | ||
*/ | ||
public class CoreographyBuilder { | ||
private EPackage domain; | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,6 @@ | |
* This implementation does not depend on Xtext | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public class JsonAdvancedDiscoverer { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,6 @@ | |
* ecore models discovered by the {@link JSONAdvancedDsicoverer} | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public class JsonComposer { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ | |
* the input (as JSON) and the output (as JSON) of the service given such an input. | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
class JsonData { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,6 @@ | |
* This implementation does not depend on Xtext | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public class JsonInjector { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,6 @@ | |
* This implementation does not depend on Xtext (v0.1.0) | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public class JsonSimpleDiscoverer { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ | |
* (i.e., set of JSON documents returned by the same JSON-based Web API) | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public class JsonSource extends AbstractJsonSource { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ | |
* (i.e., several examples of different JSON-based API calls) | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public class JsonSourceSet extends AbstractJsonSource { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ | |
* with ONE JSON document and WITHOUT input | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 2.0.0 | ||
* | ||
*/ | ||
public class SingleJsonSource extends JsonSource { | ||
|
13 changes: 13 additions & 0 deletions
13
jsondiscoverer/src/jsondiscoverer/util/DijkstraSolver.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2008, 2015 | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Javier Canovas ([email protected]) | ||
*******************************************************************************/ | ||
|
||
|
||
|
||
package jsondiscoverer.util; | ||
|
||
import java.util.ArrayList; | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2008, 2015 | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Javier Canovas ([email protected]) | ||
*******************************************************************************/ | ||
|
||
|
||
|
||
package jsondiscoverer.util; | ||
|
||
import java.sql.Timestamp; | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,6 @@ | |
* Utility class con basic model actions | ||
* | ||
* @author Javier Canovas ([email protected]) | ||
* @version 1.0.0 | ||
* | ||
*/ | ||
public class ModelHelper { | ||
|