-
-
Save hovo1990/c9b8d6b3305088980be2e99dc9f81839 to your computer and use it in GitHub Desktop.
Deviser Generated JSBML code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @return the value of the "compartment" attribute of this | |
* QualitativeSpecies. | |
*/ | |
public String getCompartment() | |
{ | |
return isSetCompartment() ? compartment : ""; | |
} | |
/** | |
* @return the value of the "constant" attribute of this QualitativeSpecies. | |
*/ | |
public boolean getConstant() | |
{ | |
if (isSetConstant()) | |
{ | |
return mConstant.booleanValue(); | |
} | |
throw new PropertyUndefinedError(QualConstants.mConstant, this); | |
} | |
/** | |
* @return the value of the "initialLevel" attribute of this | |
* QualitativeSpecies. | |
*/ | |
public int getInitialLevel() | |
{ | |
if (isSetInitialLevel()) | |
{ | |
return mInitialLevel.intValue(); | |
} | |
throw new PropertyUndefinedError(QualConstants.mInitialLevel, this); | |
} | |
/** | |
* @return the value of the "maxLevel" attribute of this QualitativeSpecies. | |
*/ | |
public int getMaxLevel() | |
{ | |
if (isSetMaxLevel()) | |
{ | |
return mMaxLevel.intValue(); | |
} | |
throw new PropertyUndefinedError(QualConstants.mMaxLevel, this); | |
} | |
/** Not Yet Implemented | |
* Predicate returning {@code true} if this QualitativeSpecies's | |
* "compartment" attribute is set. | |
*/ | |
public boolean isSetCompartment() | |
{ | |
; | |
} | |
/** | |
* Predicate returning {@code true} if this QualitativeSpecies's "constant" | |
* attribute is set. | |
*/ | |
public boolean isSetConstant() | |
{ | |
return mConstant != null; | |
} | |
/** | |
* Predicate returning {@code true} if this QualitativeSpecies's | |
* "initialLevel" attribute is set. | |
*/ | |
public boolean isSetInitialLevel() | |
{ | |
return mInitialLevel != null; | |
} | |
/** | |
* Predicate returning {@code true} if this QualitativeSpecies's "maxLevel" | |
* attribute is set. | |
*/ | |
public boolean isSetMaxLevel() | |
{ | |
return mMaxLevel != null; | |
} | |
/** | |
* Sets the value of the "compartment" attribute of this QualitativeSpecies. | |
*/ | |
public boolean setCompartment(String compartment) | |
{ | |
if (compartment != this.mCompartment) | |
{ | |
String oldmCompartment = this.mCompartment; | |
if ((compartment == null) || (compartment.length() == 0) | |
{ | |
this.mCompartment = null; | |
} | |
else | |
{ | |
this.mCompartment = compartment; | |
} | |
firePropertyChange(QualConstants.mCompartment, oldmCompartment, | |
this.oldmCompartment); | |
return true; | |
} | |
return false; | |
} | |
/** | |
* Sets the value of the "constant" attribute of this QualitativeSpecies. | |
*/ | |
public void setConstant(boolean constant) | |
{ | |
Boolean oldmConstant = this.mConstant; | |
this.oldmConstant = constant; | |
firePropertyChange(QualConstants.mConstant, oldmConstant, | |
this.oldmConstant); | |
} | |
/** | |
* Sets the value of the "initialLevel" attribute of this QualitativeSpecies. | |
*/ | |
public void setInitialLevel(int initialLevel) | |
{ | |
Integer oldmInitialLevel = this.mInitialLevel; | |
this.oldmInitialLevel = initialLevel; | |
firePropertyChange(QualConstants.mInitialLevel, oldmInitialLevel, | |
this.oldmInitialLevel); | |
} | |
/** | |
* Sets the value of the "maxLevel" attribute of this QualitativeSpecies. | |
*/ | |
public void setMaxLevel(int maxLevel) | |
{ | |
Integer oldmMaxLevel = this.mMaxLevel; | |
this.oldmMaxLevel = maxLevel; | |
firePropertyChange(QualConstants.mMaxLevel, oldmMaxLevel, | |
this.oldmMaxLevel); | |
} | |
/** | |
* Unsets the value of the "compartment" attribute of this | |
* QualitativeSpecies. | |
*/ | |
public boolean unsetCompartment() | |
{ | |
if (isSetCompartment()) | |
{ | |
mCompartment = null; | |
return true; | |
} | |
else | |
{ | |
return false; | |
} | |
} | |
/** | |
* Unsets the value of the "constant" attribute of this QualitativeSpecies. | |
*/ | |
public boolean unsetConstant() | |
{ | |
if (isSetConstant()) | |
{ | |
Boolean oldmConstant = mConstant; | |
mConstant = null; | |
firePropertyChange(QualConstants.mConstant, oldmConstant, mConstant); | |
return true; | |
} | |
else | |
{ | |
return false; | |
} | |
} | |
/** | |
* Unsets the value of the "initialLevel" attribute of this | |
* QualitativeSpecies. | |
*/ | |
public boolean unsetInitialLevel() | |
{ | |
if (isSetInitialLevel()) | |
{ | |
Integer oldmInitialLevel = mInitialLevel; | |
mInitialLevel = null; | |
firePropertyChange(QualConstants.mInitialLevel, oldmInitialLevel, | |
mInitialLevel); | |
return true; | |
} | |
else | |
{ | |
return false; | |
} | |
} | |
/** | |
* Unsets the value of the "maxLevel" attribute of this QualitativeSpecies. | |
*/ | |
public boolean unsetMaxLevel() | |
{ | |
if (isSetMaxLevel()) | |
{ | |
Integer oldmMaxLevel = mMaxLevel; | |
mMaxLevel = null; | |
firePropertyChange(QualConstants.mMaxLevel, oldmMaxLevel, mMaxLevel); | |
return true; | |
} | |
else | |
{ | |
return false; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment