public class ExternalModelDefinition extends AbstractNamedSBase implements UniqueNamedSBase
ExternalModelDefinition objects are model definitions - in and of
themselves, they are definitions of the models but not uses of those models.
The class provides a way to declare and identify them so that Model
objects in the present SBMLDocument can use them in SubModel
objects.ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
ExternalModelDefinition()
Creates an ExternalModelDefinition instance
|
ExternalModelDefinition(ExternalModelDefinition obj)
Clone constructor
|
ExternalModelDefinition(String id)
Creates a ExternalModelDefinition instance with an id.
|
ExternalModelDefinition(String id,
int level,
int version)
Creates a ExternalModelDefinition instance with an id, level, and version.
|
ExternalModelDefinition(String id,
String name,
int level,
int version)
Creates a ExternalModelDefinition instance with an id, name, level, and version.
|
| Modifier and Type | Method and Description |
|---|---|
ExternalModelDefinition |
clone()
clones this class
|
boolean |
equals(Object obj) |
String |
getMd5()
Returns the value of md5 or an empty
String if it is not set. |
String |
getModelRef()
Returns the value of modelRef or an empty
String if it is not set. |
String |
getSource()
Returns the value of source or an empty
String if it is not set. |
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isIdMandatory() |
boolean |
isSetMd5()
Returns whether md5 is set
|
boolean |
isSetModelRef()
Returns whether modelRef is set
|
boolean |
isSetSource()
Returns whether source is set
|
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
void |
setMd5(String md5)
Sets the value of the optional md5 attribute.
|
void |
setModelRef(String modelRef)
Sets the value of the optional modelRef attribute.
|
void |
setSource(String source)
Sets the value of the required source attribute.
|
boolean |
unsetMd5()
Unsets the variable md5
|
boolean |
unsetModelRef()
Unsets the variable modelRef
|
boolean |
unsetSource()
Unsets the variable source
|
Map<String,String> |
writeXMLAttributes() |
isValidIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetchildren, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafpublic ExternalModelDefinition()
public ExternalModelDefinition(String id)
id - public ExternalModelDefinition(String id, int level, int version)
id - level - version - public ExternalModelDefinition(String id, String name, int level, int version)
id - name - level - version - public ExternalModelDefinition(ExternalModelDefinition obj)
obj - public ExternalModelDefinition clone()
clone in interface SBaseclone in class AbstractSBasepublic void initDefaults()
public int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean equals(Object obj)
equals in interface SBaseequals in class AbstractSBasepublic String getSource()
String if it is not set.String if it is not set.public boolean isSetSource()
public void setSource(String source)
ExternalModelDefinition. The value of the attribute must
be a URI, which includes URLs, URNs, or relative/absolute file locations.
The source attribute must refer specifically to an SBML Level 3 Version 1
document. The entire file at the given location is referenced. The source
attribute must have a value for every ExternalModelDefinition.source - public boolean unsetSource()
true , if source was set before,
otherwise falsepublic String getModelRef()
String if it is not set.String if it is not set.public boolean isSetModelRef()
public void setModelRef(String modelRef)
Model or ExternalModelDefinition
object within the SBML document located at source. The object referenced may be
the main model in the document, or it may be a model definition contained in the
SBML document's listOfModelDefinitions or listOfExternalModelDefinitions. Loops
are not allowed: it must be possible to follow a chain of
ExternalModelDefinition objects to its end in a Model object.
In core SBML, the id on Model is an optional attribute, and therefore, it
is possible that the Model object in a given SBML document does not have
an identifier. In that case, there is no value to give to the modelRef attribute
in ExternalModelDefinition. If modelRef does not have a value, then the
main model (i.e., the model element within the sbml element) in the referenced
file is interpreted as being the model referenced by this ExternalModelDefinition
instance.modelRef - public boolean unsetModelRef()
true, if modelRef was set before,
otherwise falsepublic String getMd5()
String if it is not set.String if it is not set.public boolean isSetMd5()
public void setMd5(String md5)
ExternalModelDefinition reference was constructed.md5 - public boolean unsetMd5()
true, if md5 was set before,
otherwise falsepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBasepublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBasepublic boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBaseCopyright © 2009–2016. All rights reserved.