Skip to content
Snippets Groups Projects
Commit e3964d10 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

missing methods added

parent 2ef539c9
No related branches found
No related tags found
1 merge request!12Resolve "new JS API calls"
......@@ -411,6 +411,12 @@ public class RestAnnotationParserTest extends CellDesignerTestFunctions {
// TODO Auto-generated method stub
return 0;
}
@Override
public String getStringType() {
// TODO Auto-generated method stub
return null;
}
});
fail("Exception expected");
} catch (NotImplementedException e) {
......
......@@ -126,4 +126,13 @@ public interface AnnotatedObject extends Serializable {
void setName(String name);
int getId();
/**
* Return human readable {@link String} representing class.
*
* @return human readable {@link String} representing class
*/
public abstract String getStringType();
}
......@@ -38,6 +38,11 @@ public class OvalCompartment extends Compartment {
super(original);
}
public OvalCompartment(String elementId) {
super();
setElementId(elementId);
}
@Override
public OvalCompartment copy() {
if (this.getClass() == OvalCompartment.class) {
......
......@@ -402,7 +402,7 @@ public class Reaction implements AnnotatedObject {
* @return short string describing type of the reaction
*/
public String getStringType() {
throw new NotImplementedException();
return "Generic Reaction";
}
/**
......
......@@ -1058,13 +1058,6 @@ public abstract class Element implements AnnotatedObject, Serializable {
synonyms.add(synonym);
}
/**
* Return human readable {@link String} representing class.
*
* @return human readable {@link String} representing class
*/
public abstract String getStringType();
/**
* @return the dataMining
* @see #dataMining
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment