Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Devrim Gunyel
core
Commits
4ce0bb1f
Commit
4ce0bb1f
authored
May 10, 2019
by
Piotr Gawron
Browse files
class allowing properties changed to properly reflect object properties
parent
f7c0f018
Changes
1
Show whitespace changes
Inline
Side-by-side
converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/annotation/NoteField.java
View file @
4ce0bb1f
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"
,
CellDesigner
Element
.
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"
,
CellDesigner
Element
.
class
,
null
),
CHARGED_FORMULA
(
"ChargedFormula"
,
Element
.
class
,
null
),
/**
* {@link Species#charge}.
*/
CHARGE
(
"Charge"
,
CellDesigner
Species
.
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment