public class Association extends SBase
Constructor and Description |
---|
Association()   |
Association(Association source)   |
Association(FbcPkgNamespaces fbcns)   |
Association(long level)   |
Association(long level,
long version)   |
Association(long level,
long version,
long pkgVersion)   |
Association(XMLNode node,
FbcPkgNamespaces fbcns)   |
Modifier and Type | Method and Description |
---|---|
int |
addAssociation(Association association)   |
int |
addGene(String id)   |
int |
clearAssociations()   |
Association |
cloneObject()
Creates and returns a deep copy of this
SBase object. |
Association |
createAnd()   |
Association |
createGene()   |
Association |
createGene(String reference)   |
Association |
createOr()   |
void |
delete()
Explicitly deletes the underlying native object.
|
String |
getElementName()
Returns the XML element name of this object.
|
long |
getNumAssociations()   |
String |
getReference()   |
int |
getType()   |
int |
getTypeCode()
Returns the libSBML type code for this object.
|
boolean |
isSetReference()   |
boolean |
isSetType()   |
static Association |
parseInfixAssociation(String association)   |
int |
removeAssociation(int index)   |
int |
setReference(String reference)   |
int |
setType(int type)   |
String |
toInfix()   |
XMLNode |
toXML()   |
int |
unsetReference()   |
int |
unsetType()   |
addCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getElementByMetaId, getElementBySId, getLevel, getLine, getListOfAllElements, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isSetAnnotation, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeFromParentAndDelete, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameSIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, unsetAnnotation, unsetCVTerms, unsetId, unsetMetaId, unsetModelHistory, unsetName, unsetNotes, unsetSBOTerm
public Association() throws SBMLConstructorException
SBMLConstructorException
public Association(Association source) throws SBMLConstructorException
SBMLConstructorException
public Association(FbcPkgNamespaces fbcns) throws SBMLConstructorException
SBMLConstructorException
public Association(long level) throws SBMLConstructorException
SBMLConstructorException
public Association(long level, long version) throws SBMLConstructorException
SBMLConstructorException
public Association(long level, long version, long pkgVersion) throws SBMLConstructorException
SBMLConstructorException
public Association(XMLNode node, FbcPkgNamespaces fbcns) throws SBMLConstructorException
SBMLConstructorException
public int addAssociation(Association association)
public int clearAssociations()
public Association cloneObject()
SBase
object.
cloneObject
 in class SBase
SBase
object.public Association createAnd()
public Association createGene()
public Association createGene(String reference)
public Association createOr()
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 Association.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 Association.delete()
themselves.
public String getElementName()
This is overridden by subclasses to return a string appropriate to the
SBML component. For example, Model
defines it as returning
'model'
, CompartmentType
defines it as returning 'compartmentType'
,
and so on.
getElementName
 in class SBase
public long getNumAssociations()
public String getReference()
public int getType()
public int getTypeCode()
This method may return the type code of this SBML object, or it may
return SBML_UNKNOWN
. This
is because subclasses of SBase
are not required to implement this
method to return a type code. This method is meant primarily for the
LibSBML C interface, in which class and subclass information is not
readily available.
getTypeCode
 in class SBase
SBML_UNKNOWN
(the default).
Association.getElementName()
,
SBase.getPackageName()
public boolean isSetReference()
public boolean isSetType()
public static Association parseInfixAssociation(String association)
public int removeAssociation(int index)
public int setReference(String reference)
public int setType(int type)
public int unsetReference()
public int unsetType()