- All Superinterfaces:
AbstractModelComponent
,AbstractModelComponent
,MetaboliteType
,ReadOnlyInterface
,WritableInterface
public interface MetaboliteType extends AbstractModelComponent, MetaboliteType
-
Method Summary
Modifier and Type Method Description void
addPublicIdentifier(PublicIdentifier publicIdentifier)
Adds a public identifier to the item.default void
addSynonym(String synonym)
Adds a synonym to the item.void
addSynonym(String synonym, String htmlSynonym)
Adds a synonym to the item.void
exchangeSynonyms(int index1, int index2)
Exchanges the position of two synonyms.List<? extends Metabolite>
getExistingMetabolites()
List<? extends Metabolite>
getExistingMetabolites(Diagram diagram)
Metabolite
getMetabolite(Compartment compartment)
Returns the metabolite pool inside the given compartment.default Metabolite
getNonCompartmentalizedMetabolite()
List<? extends Metabolite>
metabolites()
Returns all metabolite pools of different compartments.void
removePublicIdentifier(PublicIdentifier publicIdentifier)
Removes the public identifier from the item.void
removeSynonym(int synonymIndex)
Removes the synonym from the item.void
removeSynonym(String synonym)
Removes the synonym from the item.void
setFormattedLabel(String html)
Set items visible label in html.void
setIdentifier(String identifier)
Changes identifier of the item.void
setPublicIdentifiers(Collection<? extends PublicIdentifier> publicIdentifiers)
Set the public identifiers of the item.default void
setSynonym(int index, String synonymPlain)
Sets the synonym at the given position.void
setSynonym(int index, String synonymPlain, String synonymRichText)
Sets the synonym at the given position.MetaboliteType
toReadOnly()
Methods inherited from interface omix.plugin.model.AbstractModelComponent
addChangeListener, addPropertyChangeListener, fieldExists, removeChangeListener, removePropertyChangeListener
Methods inherited from interface omix.plugin.model.writable.AbstractModelComponent
getField, getField, isChangeable, model
Methods inherited from interface omix.plugin.model.MetaboliteType
getCustomProperty, getIdentifier, getPublicIdentifiers, name, setCustomProperty, setTmpCustomProperty, synonyms
-
Method Details
-
getMetabolite
Returns the metabolite pool inside the given compartment.- Specified by:
getMetabolite
in interfaceMetaboliteType
- Parameters:
compartment
-- Returns:
- metabolite
-
getNonCompartmentalizedMetabolite
- Specified by:
getNonCompartmentalizedMetabolite
in interfaceMetaboliteType
-
metabolites
List<? extends Metabolite> metabolites()Returns all metabolite pools of different compartments.- Specified by:
metabolites
in interfaceMetaboliteType
- Returns:
- list of all metabolite pools
-
setIdentifier
Changes identifier of the item.- Parameters:
identifier
- the new name of the item. CAUTION, the name must be unique in the network.- Throws:
ComponentExistsException
IllegalChangeException
-
setFormattedLabel
Set items visible label in html.- Parameters:
html
- item's label in HTML- Throws:
IllegalChangeException
-
addSynonym
Adds a synonym to the item.- Parameters:
synonym
-- Throws:
IllegalChangeException
-
addSynonym
Adds a synonym to the item.- Parameters:
synonym
-html
-- Throws:
IllegalChangeException
-
removeSynonym
Removes the synonym from the item.- Parameters:
synonym
-- Throws:
IllegalChangeException
-
removeSynonym
Removes the synonym from the item.- Parameters:
synonym
- index- Throws:
IllegalChangeException
-
exchangeSynonyms
Exchanges the position of two synonyms.- Parameters:
index1
-index2
-- Throws:
IllegalChangeException
-
setSynonym
Sets the synonym at the given position.- Parameters:
index
-synonymPlain
- plain text- Throws:
IllegalChangeException
-
setSynonym
void setSynonym(int index, String synonymPlain, String synonymRichText) throws IllegalChangeExceptionSets the synonym at the given position.- Parameters:
index
-synonymPlain
- plain textsynonymRichText
- rich text- Throws:
IllegalChangeException
-
addPublicIdentifier
Adds a public identifier to the item.- Parameters:
publicIdentifier
-- Throws:
IllegalChangeException
-
setPublicIdentifiers
void setPublicIdentifiers(Collection<? extends PublicIdentifier> publicIdentifiers) throws IllegalChangeExceptionSet the public identifiers of the item.- Parameters:
publicIdentifiers
-- Throws:
IllegalChangeException
-
removePublicIdentifier
Removes the public identifier from the item.- Parameters:
publicIdentifier
-- Throws:
IllegalChangeException
-
toReadOnly
MetaboliteType toReadOnly()- Specified by:
toReadOnly
in interfaceAbstractModelComponent
- Specified by:
toReadOnly
in interfaceWritableInterface
-
getExistingMetabolites
List<? extends Metabolite> getExistingMetabolites()- Specified by:
getExistingMetabolites
in interfaceMetaboliteType
-
getExistingMetabolites
- Specified by:
getExistingMetabolites
in interfaceMetaboliteType
-