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