org.sbml.jsbml.xml.parsers
public java.util.List<java.lang.Object> getListOfSBMLElementsToWrite(java.lang.Object sbase)
WritingParser
objectToWrite
.getListOfSBMLElementsToWrite
in interface WritingParser
getListOfSBMLElementsToWrite
in class AbstractReaderWriter
sbase
- the SBase
component to write.SBase
' contains. Represents
the list of subNodes of this SBase
component.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)
ReadingParser
For 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 ReadingParser
processStartElement
in class AbstractReaderWriter
elementName
- 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.org.sbml.jsbml.xml.parsers.ReadingParser#processStartElement(String
elementName, String prefix, boolean hasAttributes, boolean
hasNamespaces, Object contextObject)
public java.lang.String getShortLabel()
AbstractReaderWriter
getShortLabel
in class AbstractReaderWriter
public java.lang.String getNamespaceURI()
AbstractReaderWriter
getNamespaceURI
in class AbstractReaderWriter
public java.lang.String getNamespaceFor(int level, int version, int packageVersion)
PackageParser
Returns null if the combined level, version and packageVersion is invalid or not known from the package parser implementation.
getNamespaceFor
in interface PackageParser
level
- - the SBML levelversion
- - the SBML versionpackageVersion
- - the package versionpublic java.util.List<java.lang.String> getNamespaces()
ReadingParser
List
of all the namespaces that this parser is handling.getNamespaces
in interface ReadingParser
getNamespaces
in interface WritingParser
List
of all the namespaces that this parser is handlingpublic java.util.List<java.lang.String> getPackageNamespaces()
PackageParser
List
of all the valid namespaces for the package.getPackageNamespaces
in interface PackageParser
List
of all the valid namespaces for the package.public java.lang.String getPackageName()
PackageParser
getPackageName
in interface PackageParser
public boolean isRequired()
PackageParser
required
attribute for this package.isRequired
in interface PackageParser
required
attribute for this package.public SBasePlugin createPluginFor(SBase sbase)
PackageParser
createPluginFor
in interface PackageParser
sbase
- - the sbase for which you want to create an SBasePlugin
SBasePlugin
corresponding to the given SBase
.