public class FbcSpeciesPlugin extends SBasePlugin
Constructor and Description |
---|
FbcSpeciesPlugin(FbcSpeciesPlugin orig)
Copy constructor for
FbcSpeciesPlugin . |
FbcSpeciesPlugin(java.lang.String uri,
java.lang.String prefix,
FbcPkgNamespaces fbcns)
Creates a new
FbcSpeciesPlugin |
Modifier and Type | Method and Description |
---|---|
SBasePlugin |
cloneObject()
Creates and returns a deep copy of this
FbcSpeciesPlugin object. |
void |
delete()
Explicitly deletes the underlying native object.
|
int |
getCharge()
Returns the value of the 'charge' attribute of this
FbcSpeciesPlugin . |
java.lang.String |
getChemicalFormula()
Returns the value of the 'chemicalFormula' attribute of this
FbcSpeciesPlugin . |
boolean |
hasRequiredElements()
Checks if this plugin object has all the required elements.
|
boolean |
isSetCharge()
Predicate returning
true or false depending on whether this
FbcSpeciesPlugin 's 'charge' attribute has been set. |
boolean |
isSetChemicalFormula()
Predicate returning
true or false depending on whether this
FbcSpeciesPlugin 's 'chemicalFormula' attribute has been set. |
int |
setCharge(int charge)
Sets the value of the 'charge' attribute of this
FbcSpeciesPlugin . |
int |
setChemicalFormula(java.lang.String chemicalFormula)
Sets the value of the 'chemicalFormula' attribute of this
FbcSpeciesPlugin . |
int |
unsetCharge()
Unsets the value of the 'charge' attribute of this
FbcSpeciesPlugin . |
int |
unsetChemicalFormula()
Unsets the value of the 'chemicalFormula' attribute of this
FbcSpeciesPlugin . |
getElementByMetaId, getElementBySId, getElementNamespace, getLevel, getListOfAllElements, getListOfAllElements, getPackageName, getPackageVersion, getParentSBMLObject, getPrefix, getSBMLDocument, getURI, getVersion, isValidTypeForList, renameMetaIdRefs, renameSIdRefs, renameUnitSIdRefs, setElementNamespace
public FbcSpeciesPlugin(java.lang.String uri, java.lang.String prefix, FbcPkgNamespaces fbcns)
FbcSpeciesPlugin
public FbcSpeciesPlugin(FbcSpeciesPlugin orig)
FbcSpeciesPlugin
.
orig
- the FbcSpeciesPlugin
instance to copy.public void delete()
In general, application software will not need to call this method directly. The Java language binding for libSBML is implemented as a language wrapper that provides a Java interface to libSBML's underlying C++/C code. Some of the Java methods return objects that are linked to objects created not by Java code, but by C++ code. The Java objects wrapped around them will be deleted when the garbage collector invokes the corresponding C++ finalize()
methods for the objects. The finalize()
methods in turn call the FbcSpeciesPlugin.delete()
method on the libSBML object.
This method is exposed in case calling programs want to ensure that the underlying object is freed immediately, and not at some arbitrary time determined by the Java garbage collector. In normal usage, callers do not need to invoke FbcSpeciesPlugin.delete()
themselves.
delete
 in class SBasePlugin
public SBasePlugin cloneObject()
FbcSpeciesPlugin
object.
cloneObject
 in class SBasePlugin
FbcSpeciesPlugin
object.public boolean hasRequiredElements()
Subclasses must override this method if they have their specific elements.
public int getCharge()
FbcSpeciesPlugin
.
FbcSpeciesPlugin
as a integer.public java.lang.String getChemicalFormula()
FbcSpeciesPlugin
.
FbcSpeciesPlugin
as a string.public boolean isSetCharge()
true
or false
depending on whether this
FbcSpeciesPlugin
's 'charge' attribute has been set.
true
if this FbcSpeciesPlugin
's 'charge' attribute has been set,
otherwise false
is returned.public boolean isSetChemicalFormula()
true
or false
depending on whether this
FbcSpeciesPlugin
's 'chemicalFormula' attribute has been set.
true
if this FbcSpeciesPlugin
's 'chemicalFormula' attribute has been set,
otherwise false
is returned.public int setCharge(int charge)
FbcSpeciesPlugin
.
charge
- int value of the 'charge' attribute to be set
public int setChemicalFormula(java.lang.String chemicalFormula)
FbcSpeciesPlugin
.
chemicalFormula
- String value of the 'chemicalFormula' attribute to be set
public int unsetCharge()
FbcSpeciesPlugin
.
public int unsetChemicalFormula()
FbcSpeciesPlugin
.