org.sbml.jsbml.ext.comp
public class ExternalModelDefinition extends AbstractNamedSBase implements UniqueNamedSBase
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
md5 |
private java.lang.String |
modelRef |
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
source |
ignoredExtensions, ignoredXMLElements
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
ExternalModelDefinition()
Creates an ExternalModelDefinition instance
|
ExternalModelDefinition(ExternalModelDefinition obj)
Clone constructor
|
ExternalModelDefinition(java.lang.String id)
Creates a ExternalModelDefinition instance with an id.
|
ExternalModelDefinition(java.lang.String id,
int level,
int version)
Creates a ExternalModelDefinition instance with an id, level, and version.
|
ExternalModelDefinition(java.lang.String id,
java.lang.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
|
java.lang.String |
getMd5()
Returns the value of md5 or an empty
String if it is not set. |
java.lang.String |
getModelRef()
Returns the value of modelRef or an empty
String if it is not set. |
java.lang.String |
getSource()
Returns the value of source or an empty
String if it is not set. |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isIdMandatory()
This method can be used to query if the identifier of this
NamedSBase is required to be defined (i.e., not null )
in the definition of SBML. |
boolean |
isSetMd5()
Returns whether md5 is set
|
boolean |
isSetModelRef()
Returns whether modelRef is set
|
boolean |
isSetSource()
Returns whether source is set
|
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
If the attribute is an id or name attribute, it will set the id or name
of this object with the value of the XML attribute ('value').
|
void |
setMd5(java.lang.String md5)
Sets the value of md5
|
void |
setModelRef(java.lang.String modelRef)
Sets the value of modelRef
|
void |
setSource(java.lang.String source)
Sets the value of source
|
boolean |
unsetMd5()
Unsets the variable md5
|
boolean |
unsetModelRef()
Unsets the variable modelRef
|
boolean |
unsetSource()
Unsets the variable source
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
equals, getId, getName, hashCode, isSetId, isSetName, isValidId, setId, setName, toString, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, isSetId, isSetName, setId, setName, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
private java.lang.String source
private java.lang.String modelRef
private java.lang.String md5
public ExternalModelDefinition()
public ExternalModelDefinition(java.lang.String id)
id
- public ExternalModelDefinition(java.lang.String id, int level, int version)
id
- level
- version
- public ExternalModelDefinition(java.lang.String id, java.lang.String name, int level, int version)
id
- name
- level
- version
- public ExternalModelDefinition(ExternalModelDefinition obj)
public ExternalModelDefinition clone()
clone
in interface SBase
clone
in class AbstractSBase
public void initDefaults()
public java.lang.String getSource()
String
if it is not set.String
if it is not set.public boolean isSetSource()
public void setSource(java.lang.String source)
public boolean unsetSource()
true
, if source was set before,
otherwise false
public java.lang.String getModelRef()
String
if it is not set.String
if it is not set.public boolean isSetModelRef()
public void setModelRef(java.lang.String modelRef)
public boolean unsetModelRef()
true
, if modelRef was set before,
otherwise false
public java.lang.String getMd5()
String
if it is not set.String
if it is not set.public boolean isSetMd5()
public void setMd5(java.lang.String md5)
public boolean unsetMd5()
true
, if md5 was set before,
otherwise false
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class AbstractNamedSBase
Map
containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
readAttribute
in interface SBase
readAttribute
in class AbstractNamedSBase
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.public boolean isIdMandatory()
NamedSBase
NamedSBase
is required to be defined (i.e., not null
)
in the definition of SBML.isIdMandatory
in interface NamedSBase
true
if the identifier of this element must be set in
order to create a valid SBML representation. false
otherwise, i.e., if the identifier can be understood as an optional
attribute.