org.sbml.jsbml.xml.parsers
public java.util.List<java.lang.String> getNamespaces()
ReadingParserList of all the namespaces that this parser is handling.getNamespaces in interface ReadingParsergetNamespaces in interface WritingParserList of all the namespaces that this parser is handlingpublic SBasePlugin createPluginFor(SBase sbase)
PackageParsercreatePluginFor in interface PackageParsersbase - - the sbase for which you want to create an SBasePluginSBasePlugin corresponding to the given SBase.public java.lang.String getNamespaceFor(int level,
int version,
int packageVersion)
PackageParserReturns null if the combined level, version and packageVersion is invalid or not known from the package parser implementation.
getNamespaceFor in interface PackageParserlevel - - the SBML levelversion - - the SBML versionpackageVersion - - the package versionpublic java.util.List<java.lang.String> getPackageNamespaces()
PackageParserList of all the valid namespaces for the package.getPackageNamespaces in interface PackageParserList of all the valid namespaces for the package.public java.lang.String getPackageName()
PackageParsergetPackageName in interface PackageParserpublic boolean isRequired()
PackageParserrequired attribute for this package.isRequired in interface PackageParserrequired attribute for this package.public java.lang.Object processStartElement(java.lang.String elementName,
java.lang.String uri,
java.lang.String prefix,
boolean hasAttributes,
boolean hasNamespaces,
java.lang.Object contextObject)
ReadingParserFor example, if the contextObject is an instance of Event and the
elementName is 'trigger', this method will create a new Trigger instance
and will set the trigger instance of the 'contextObject' to the new
Trigger. Then the method will return the new Trigger instance which is the
new environment.
processStartElement in interface ReadingParserprocessStartElement in class AbstractReaderWriterelementName - the localName of the XML element to processprefix - the prefix of the XML element to processhasAttributes - boolean value to know if this XML element has attributes.hasNamespaces - boolean value to know if this XML element contains namespace
declarations.contextObject - the object to set or modify depending on the identity of the current
XML element. This object
represents the context of the XML element in the SBMLDocument.public java.lang.String getShortLabel()
AbstractReaderWritergetShortLabel in class AbstractReaderWriterpublic java.lang.String getNamespaceURI()
AbstractReaderWritergetNamespaceURI in class AbstractReaderWriterpublic void writeElement(SBMLObjectForXML xmlObject, java.lang.Object sbmlElementToWrite)
WritingParserwriteElement in interface WritingParserwriteElement in class AbstractReaderWriterxmlObject - contains the XML information about sbmlElement.sbmlElementToWrite - the SBase component to write