Skip to content

Commit

Permalink
Last polishing in the code (comments basically and docs)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlcanovas committed Sep 1, 2015
1 parent 3f962fb commit 4aff97f
Show file tree
Hide file tree
Showing 25 changed files with 52 additions and 20 deletions.
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
* Main servlet to provide access to {@link JsonAdvancedDiscoverer}
*
* @author Javier Canovas ([email protected])
* @version 2.0.0
*
*/
@WebServlet("/advancedDiscover")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
* ervlet to access to {@link JsonComposer}
*
* @author Javier Canovas ([email protected])
* @version 2.0.0
*
*/
@WebServlet("/composer")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
* This servlet gives access to the {@link JsonInjector}
*
* @author Javier Canovas ([email protected])
* @version 2.0.0
*
*/
@WebServlet("/simpleDiscoverModel")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* LIMIT_LINES to avoid overloading the server.
*
* @author Javier Canovas ([email protected])
* @version 2.0.0
*
*/
@WebServlet("/getJson")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 6 additions & 0 deletions jsondiscoverer.zoo/src/jsondiscoverer/zoo/ModelDrawer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/AbstractJsonSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* Common implementation for JSON sources
*
* @author Javier Canovas ([email protected])
* @version 2.0.0
*
*/
public abstract class AbstractJsonSource {
Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/AnnotationHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 8 additions & 0 deletions jsondiscoverer/src/jsondiscoverer/CoreographyBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
* This implementation does not depend on Xtext
*
* @author Javier Canovas ([email protected])
* @version 2.0.0
*
*/
public class JsonAdvancedDiscoverer {
Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/JsonComposer.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
* ecore models discovered by the {@link JSONAdvancedDsicoverer}
*
* @author Javier Canovas ([email protected])
* @version 2.0.0
*
*/
public class JsonComposer {
Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/JsonData.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/JsonInjector.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
* This implementation does not depend on Xtext
*
* @author Javier Canovas ([email protected])
* @version 2.0.0
*
*/
public class JsonInjector {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/JsonSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/JsonSourceSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/SingleJsonSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
13 changes: 13 additions & 0 deletions jsondiscoverer/src/jsondiscoverer/util/DijkstraSolver.java
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;
Expand Down
13 changes: 13 additions & 0 deletions jsondiscoverer/src/jsondiscoverer/util/GexfConverter.java
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;
Expand Down
1 change: 0 additions & 1 deletion jsondiscoverer/src/jsondiscoverer/util/ModelHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* Utility class con basic model actions
*
* @author Javier Canovas ([email protected])
* @version 1.0.0
*
*/
public class ModelHelper {
Expand Down

0 comments on commit 4aff97f

Please sign in to comment.