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
Hide 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
;
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.BioEntity
;
import
lcsb.mapviewer.model.map.Drawable
;
import
lcsb.mapviewer.model.map.Drawable
;
import
lcsb.mapviewer.model.map.MiriamType
;
import
lcsb.mapviewer.model.map.MiriamType
;
...
@@ -16,197 +14,197 @@ import lcsb.mapviewer.model.map.species.Species;
...
@@ -16,197 +14,197 @@ import lcsb.mapviewer.model.map.species.Species;
*
*
*/
*/
public
enum
NoteField
{
public
enum
NoteField
{
/**
/**
* List of {@link MiriamType#HGNC} identifiers.
* List of {@link MiriamType#HGNC} identifiers.
*/
*/
HGNC
(
"HGNC_ID"
,
BioEntity
.
class
,
MiriamType
.
HGNC
),
HGNC
(
"HGNC_ID"
,
BioEntity
.
class
,
MiriamType
.
HGNC
),
/**
/**
* List of {@link MiriamType#REFSEQ} identifiers.
* List of {@link MiriamType#REFSEQ} identifiers.
*/
*/
REFSEQ
(
"RefSeq_ID"
,
BioEntity
.
class
,
MiriamType
.
REFSEQ
),
REFSEQ
(
"RefSeq_ID"
,
BioEntity
.
class
,
MiriamType
.
REFSEQ
),
/**
/**
* List of {@link MiriamType#ENTREZ} identifiers.
* List of {@link MiriamType#ENTREZ} identifiers.
*/
*/
ENTREZ
(
"EntrezGene_ID"
,
BioEntity
.
class
,
MiriamType
.
ENTREZ
),
ENTREZ
(
"EntrezGene_ID"
,
BioEntity
.
class
,
MiriamType
.
ENTREZ
),
/**
/**
* List of {@link MiriamType#REACTOME} identifiers.
* List of {@link MiriamType#REACTOME} identifiers.
*/
*/
REACTOME
(
"Reactome_ID"
,
BioEntity
.
class
,
MiriamType
.
REACTOME
),
REACTOME
(
"Reactome_ID"
,
BioEntity
.
class
,
MiriamType
.
REACTOME
),
/**
/**
* List of {@link MiriamType#PUBMED} identifiers.
* List of {@link MiriamType#PUBMED} identifiers.
*/
*/
PUBMED
(
"Pubmed_ID"
,
BioEntity
.
class
,
MiriamType
.
PUBMED
),
PUBMED
(
"Pubmed_ID"
,
BioEntity
.
class
,
MiriamType
.
PUBMED
),
/**
/**
* List of {@link MiriamType#KEGG_GENES} identifiers.
* List of {@link MiriamType#KEGG_GENES} identifiers.
*/
*/
KEGG_GENES
(
"KEGG_ID"
,
BioEntity
.
class
,
MiriamType
.
KEGG_GENES
),
KEGG_GENES
(
"KEGG_ID"
,
BioEntity
.
class
,
MiriamType
.
KEGG_GENES
),
/**
/**
* List of {@link MiriamType#PANTHER} identifiers.
* List of {@link MiriamType#PANTHER} identifiers.
*/
*/
PANTHER
(
"PANTHER"
,
BioEntity
.
class
,
MiriamType
.
PANTHER
),
PANTHER
(
"PANTHER"
,
BioEntity
.
class
,
MiriamType
.
PANTHER
),
/**
/**
* {@link Element#symbol}.
* {@link Element#symbol}.
*/
*/
SYMBOL
(
"Symbol"
,
CellDesignerElement
.
class
,
null
),
SYMBOL
(
"Symbol"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#fullName}.
* {@link Element#fullName}.
*/
*/
NAME
(
"Name"
,
CellDesignerElement
.
class
,
null
),
NAME
(
"Name"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#notes} or {@link Reaction#notes} .
* {@link Element#notes} or {@link Reaction#notes} .
*/
*/
DESCRIPTION
(
"Description"
,
BioEntity
.
class
,
null
),
DESCRIPTION
(
"Description"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#formerSymbols}.
* {@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}.
* {@link Element#synonyms} or {@link Reaction#synonyms}.
*/
*/
SYNONYMS
(
"Synonyms"
,
BioEntity
.
class
,
null
),
SYNONYMS
(
"Synonyms"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#abbreviation} or {@link Reaction#abbreviation}.
* {@link Element#abbreviation} or {@link Reaction#abbreviation}.
*/
*/
ABBREVIATION
(
"Abbreviation"
,
BioEntity
.
class
,
null
),
ABBREVIATION
(
"Abbreviation"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Reaction#formula}.
* {@link Reaction#formula}.
*/
*/
FORMULA
(
"Formula"
,
Reaction
.
class
,
null
),
FORMULA
(
"Formula"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#mechanicalConfidenceScore}.
* {@link Reaction#mechanicalConfidenceScore}.
*/
*/
MECHANICAL_CONFIDENCE_SCORE
(
"MechanicalConfidenceScore"
,
Reaction
.
class
,
null
),
MECHANICAL_CONFIDENCE_SCORE
(
"MechanicalConfidenceScore"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#lowerBound}.
* {@link Reaction#lowerBound}.
*/
*/
LOWER_BOUND
(
"LowerBound"
,
Reaction
.
class
,
null
),
LOWER_BOUND
(
"LowerBound"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#upperBound}.
* {@link Reaction#upperBound}.
*/
*/
UPPER_BOUND
(
"UpperBound"
,
Reaction
.
class
,
null
),
UPPER_BOUND
(
"UpperBound"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#subsystem}.
* {@link Reaction#subsystem}.
*/
*/
SUBSYSTEM
(
"Subsystem"
,
Reaction
.
class
,
null
),
SUBSYSTEM
(
"Subsystem"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#geneProteinReaction}.
* {@link Reaction#geneProteinReaction}.
*/
*/
GENE_PROTEIN_REACTION
(
"GeneProteinReaction"
,
Reaction
.
class
,
null
),
GENE_PROTEIN_REACTION
(
"GeneProteinReaction"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Element#formula}.
* {@link Element#formula}.
*/
*/
CHARGED_FORMULA
(
"ChargedFormula"
,
CellDesigner
Element
.
class
,
null
),
CHARGED_FORMULA
(
"ChargedFormula"
,
Element
.
class
,
null
),
/**
/**
* {@link Species#charge}.
* {@link Species#charge}.
*/
*/
CHARGE
(
"Charge"
,
CellDesigner
Species
.
class
,
null
),
CHARGE
(
"Charge"
,
Species
.
class
,
null
),
/**
/**
* {@link Element#getSemanticZoomLevelVisibility()}.
* {@link Element#getSemanticZoomLevelVisibility()}.
*/
*/
SEMANTIC_ZOOM_LEVEL_VISIBILITY
(
"SemanticZoomLevelVisibility"
,
BioEntity
.
class
,
null
),
SEMANTIC_ZOOM_LEVEL_VISIBILITY
(
"SemanticZoomLevelVisibility"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#getSemanticZoomLevelVisibility()}.
* {@link Element#getSemanticZoomLevelVisibility()}.
*/
*/
TRANSPARENCY_ZOOM_LEVEL_VISIBILITY
(
"SemanticZoomLevelTransparency"
,
Element
.
class
,
null
),
TRANSPARENCY_ZOOM_LEVEL_VISIBILITY
(
"SemanticZoomLevelTransparency"
,
Element
.
class
,
null
),
/**
/**
* {@link Element#getSemanticZoomLevelVisibility()}.
* {@link Element#getSemanticZoomLevelVisibility()}.
*/
*/
@Deprecated
@Deprecated
TRANSPARENCY_ZOOM_LEVEL_VISIBILITY_OLD
(
"TransparencyZoomLevelVisibility"
,
Element
.
class
,
null
),
TRANSPARENCY_ZOOM_LEVEL_VISIBILITY_OLD
(
"TransparencyZoomLevelVisibility"
,
Element
.
class
,
null
),
@ImportOnly
@ImportOnly
Z_INDEX
(
"Z-Index"
,
Drawable
.
class
,
null
),
Z_INDEX
(
"Z-Index"
,
Drawable
.
class
,
null
),
;
;
/**
/**
* Name used in the notes to distinguish fields.
* Name used in the notes to distinguish fields.
*/
*/
private
String
commonName
;
private
String
commonName
;
/**
/**
* What object class can have this field.
* What object class can have this field.
*/
*/
private
Class
<?>
clazz
;
private
Class
<?
extends
Drawable
>
clazz
;
/**
/**
* What {@link MiriamType} is associated with the field.
* What {@link MiriamType} is associated with the field.
*/
*/
private
MiriamType
miriamType
;
private
MiriamType
miriamType
;
/**
/**
* Default constructor.
* Default constructor.
*
*
* @param name
* @param name
* {@link #commonName}
* {@link #commonName}
* @param clazz
* @param clazz
* {@link #clazz}
* {@link #clazz}
*/
*/
NoteField
(
String
name
,
Class
<?>
clazz
)
{
NoteField
(
String
name
,
Class
<?
extends
Drawable
>
clazz
)
{
this
.
commonName
=
name
;
this
.
commonName
=
name
;
this
.
clazz
=
clazz
;
this
.
clazz
=
clazz
;
}
}
/**
/**
* Default constructor.
* Default constructor.
*
*
* @param name
* @param name
* {@link #commonName}
* {@link #commonName}
* @param clazz
* @param clazz
* {@link #clazz}
* {@link #clazz}
* @param type
* @param type
* {@link #miriamType}
* {@link #miriamType}
*/
*/
NoteField
(
String
name
,
Class
<?>
clazz
,
MiriamType
type
)
{
NoteField
(
String
name
,
Class
<?
extends
Drawable
>
clazz
,
MiriamType
type
)
{
this
(
name
,
clazz
);
this
(
name
,
clazz
);
this
.
miriamType
=
type
;
this
.
miriamType
=
type
;
}
}
/**
/**
* @return the miriamType
* @return the miriamType
* @see #miriamType
* @see #miriamType
*/
*/
public
MiriamType
getMiriamType
()
{
public
MiriamType
getMiriamType
()
{
return
miriamType
;
return
miriamType
;
}
}
/**
/**
* @return the commonName
* @return the commonName
* @see #commonName
* @see #commonName
*/
*/
public
String
getCommonName
()
{
public
String
getCommonName
()
{
return
commonName
;
return
commonName
;
}
}
/**
/**
* @return the clazz
* @return the clazz
* @see #clazz
* @see #clazz
*/
*/
public
Class
<?>
getClazz
()
{
public
Class
<?>
getClazz
()
{
return
clazz
;
return
clazz
;
}
}
}
}
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