Commit 4ce0bb1f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

class allowing properties changed to properly reflect object properties

parent f7c0f018
Pipeline #10168 passed with stage
in 9 minutes and 38 seconds
package lcsb.mapviewer.converter.model.celldesigner.annotation;
import lcsb.mapviewer.converter.model.celldesigner.structure.CellDesignerElement;
import lcsb.mapviewer.converter.model.celldesigner.structure.CellDesignerSpecies;
import lcsb.mapviewer.model.map.BioEntity;
import lcsb.mapviewer.model.map.Drawable;
import lcsb.mapviewer.model.map.MiriamType;
......@@ -54,12 +52,12 @@ public enum NoteField {
/**
* {@link Element#symbol}.
*/
SYMBOL("Symbol", CellDesignerElement.class, null),
SYMBOL("Symbol", BioEntity.class, null),
/**
* {@link Element#fullName}.
*/
NAME("Name", CellDesignerElement.class, null),
NAME("Name", BioEntity.class, null),
/**
* {@link Element#notes} or {@link Reaction#notes} .
......@@ -69,7 +67,7 @@ public enum NoteField {
/**
* {@link Element#formerSymbols}.
*/
PREVIOUS_SYMBOLS("Previous Symbols", CellDesignerElement.class, null),
PREVIOUS_SYMBOLS("Previous Symbols", Element.class, null),
/**
* {@link Element#synonyms} or {@link Reaction#synonyms}.
......@@ -114,12 +112,12 @@ public enum NoteField {
/**
* {@link Element#formula}.
*/
CHARGED_FORMULA("ChargedFormula", CellDesignerElement.class, null),
CHARGED_FORMULA("ChargedFormula", Element.class, null),
/**
* {@link Species#charge}.
*/
CHARGE("Charge", CellDesignerSpecies.class, null),
CHARGE("Charge", Species.class, null),
/**
* {@link Element#getSemanticZoomLevelVisibility()}.
......@@ -150,7 +148,7 @@ public enum NoteField {
/**
* What object class can have this field.
*/
private Class<?> clazz;
private Class<? extends Drawable> clazz;
/**
* What {@link MiriamType} is associated with the field.
......@@ -165,7 +163,7 @@ public enum NoteField {
* @param clazz
* {@link #clazz}
*/
NoteField(String name, Class<?> clazz) {
NoteField(String name, Class<? extends Drawable> clazz) {
this.commonName = name;
this.clazz = clazz;
}
......@@ -180,7 +178,7 @@ public enum NoteField {
* @param type
* {@link #miriamType}
*/
NoteField(String name, Class<?> clazz, MiriamType type) {
NoteField(String name, Class<? extends Drawable> clazz, MiriamType type) {
this(name, clazz);
this.miriamType = type;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment