public class PluginUnitDefinition extends PluginSBase
sbase
Constructor and Description |
---|
PluginUnitDefinition(java.lang.String id)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addUnit(PluginUnit unit)
Sets the PluginUnit of this PluginUnitDefinition.
|
java.lang.String |
getId() |
PluginListOf |
getListOfUnits() |
java.lang.String |
getName() |
int |
getNumUnits() |
PluginUnit |
getUnit(int index)
Gets the PluginUnit with the given index.
|
void |
removeUnit(int index)
Removes the PluginUnit with the given index from this PluginUnitDefinition.
|
void |
removeUnit(PluginUnit unit)
Removes the PluginUnit from this PluginUnitDefinition.
|
void |
setListOfUnits(PluginListOf listOfUnits)
Sets the list of PluginUnit of this PluginUnitDefinition
|
void |
setName(java.lang.String name)
Sets the name of this PluginUnitDefinition.
|
void |
update(PluginUnitDefinition unit)
Update all properties of this PluginUnitDefinition to the same as the given PluginUnitDefinition.
|
addCVTerm, ChangeCVTermToMiriamDefinition, getAnnotation, getAnnotationString, getCVTerm, getNotes, getNotesString, getNumCVTerms, getParentSBase, getRelationFromCVTerm, setAnnotation, setAnnotationString, setCVTerm, setNotes, setNotes, setParentSBase, toSBML
public PluginUnitDefinition(java.lang.String id)
id
- Stringpublic void update(PluginUnitDefinition unit)
unit
- PluginUnitDefinitionpublic java.lang.String getId()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Stringpublic void addUnit(PluginUnit unit)
unit
- PluginUnitpublic void removeUnit(PluginUnit unit)
unit
- PluginUnitpublic void removeUnit(int index)
index
- intpublic PluginUnit getUnit(int index)
index
- intpublic PluginListOf getListOfUnits()
public void setListOfUnits(PluginListOf listOfUnits)
listOfUnits
- PluginListOfpublic int getNumUnits()