public class GlobalRenderInformation extends RenderInformationBase
ListOfLayouts.
GlobalRenderInformation is one of the subclasses of RenderInformationBase.
A global render information object contains color definitions, gradient
definitions and line endings as defined in RenderInformationBase.
Additionally it has a list of global styles which specifies type and role
based render information. This class of objects cannot specify id-based
render information because it does not belong to a certain layout but it
belongs to all layouts. GlobalRenderInformation can be applied to all
layouts.
| Constructor and Description |
|---|
GlobalRenderInformation()
Creates a new
GlobalRenderInformation using the given SBML Level, Version
and “render” package version. |
GlobalRenderInformation(GlobalRenderInformation orig)
Copy constructor for
GlobalRenderInformation. |
GlobalRenderInformation(long level)
Creates a new
GlobalRenderInformation using the given SBML Level, Version
and “render” package version. |
GlobalRenderInformation(long level,
long version)
Creates a new
GlobalRenderInformation using the given SBML Level, Version
and “render” package version. |
GlobalRenderInformation(long level,
long version,
long pkgVersion)
Creates a new
GlobalRenderInformation using the given SBML Level, Version
and “render” package version. |
GlobalRenderInformation(RenderPkgNamespaces renderns)
Creates a new
GlobalRenderInformation using the given RenderPkgNamespaces
object. |
GlobalRenderInformation(RenderPkgNamespaces renderns,
java.lang.String id)
Constructor which creates a
GlobalRenderInformation with the given id
and all lists empty. |
| Modifier and Type | Method and Description |
|---|---|
int |
addGlobalStyle(GlobalStyle gs)
Adds a copy of the given
GlobalStyle to this GlobalRenderInformation. |
int |
addStyle(GlobalStyle gs)
Adds a copy of the given
GlobalStyle to this GlobalRenderInformation. |
GlobalRenderInformation |
cloneObject()
Creates and returns a deep copy of this
GlobalRenderInformation object. |
GlobalStyle |
createGlobalStyle()
Creates a new
GlobalStyle object, adds it to this GlobalRenderInformation
object and returns the GlobalStyle object created. |
GlobalStyle |
createStyle(java.lang.String id)
Creates a new
GlobalStyle object with the given id, adds it to this GlobalRenderInformation
object and returns the GlobalStyle object created. |
void |
delete()
Explicitly deletes the underlying native object.
|
SBase |
getElementByMetaId(java.lang.String metaid)
Returns the first child element that has the given
metaid, or null
if no such object is found. |
SBase |
getElementBySId(java.lang.String id)
Returns the first child element that has the given
id in the model-wide
SId namespace, or null if no such object is found. |
java.lang.String |
getElementName()
Returns the XML element name of this
GlobalRenderInformation object. |
GlobalStyle |
getGlobalStyle(long n)
Get a
GlobalStyle from the GlobalRenderInformation. |
GlobalStyle |
getGlobalStyle(java.lang.String id)
Get a
GlobalStyle from the GlobalRenderInformation. |
ListOfGlobalStyles |
getListOfGlobalStyles()
Returns the
ListOfGlobalStyles from this GlobalRenderInformation. |
ListOfGlobalStyles |
getListOfStyles()
Returns the
ListOfGlobalStyles from this GlobalRenderInformation. |
long |
getNumGlobalStyles()
Get the number of
GlobalStyle objects in this GlobalRenderInformation. |
long |
getNumStyles()
Get the number of
GlobalStyle objects in this GlobalRenderInformation. |
GlobalStyle |
getStyle(long n)
Get a
GlobalStyle from the GlobalRenderInformation. |
GlobalStyle |
getStyle(java.lang.String id)
Get a
GlobalStyle from the GlobalRenderInformation. |
int |
getTypeCode()
Returns the libSBML type code for this
GlobalRenderInformation object. |
void |
parseXML(XMLNode node)
Parses the xml information in the given node and sets the attributes.
|
GlobalStyle |
removeGlobalStyle(long n)
Removes the nth
GlobalStyle from this GlobalRenderInformation and returns
a pointer to it. |
GlobalStyle |
removeGlobalStyle(java.lang.String sid)
Removes the
GlobalStyle with the given id from this GlobalRenderInformation
and returns a pointer to it. |
GlobalStyle |
removeStyle(long n)
Removes the nth
GlobalStyle from this GlobalRenderInformation and returns
a pointer to it. |
XMLNode |
toXML()
Creates an
XMLNode object from this GlobalRenderInformation object. |
addColorDefinition, addGradientDefinition, addLineEnding, createColorDefinition, createLinearGradientDefinition, createLineEnding, createRadialGradientDefinition, getBackgroundColor, getColorDefinition, getColorDefinition, getGradientDefinition, getGradientDefinition, getId, getLineEnding, getLineEnding, getListOfColorDefinitions, getListOfGradientDefinitions, getListOfLineEndings, getName, getNumColorDefinitions, getNumGradientDefinitions, getNumLineEndings, getProgramName, getProgramVersion, getReferenceRenderInformation, getReferenceRenderInformationId, hasRequiredAttributes, isGlobalRenderInformation, isLocalRenderInformation, isSetBackgroundColor, isSetId, isSetName, isSetProgramName, isSetProgramVersion, isSetReferenceRenderInformation, removeColorDefinition, removeColorDefinition, removeGradientDefinition, removeGradientDefinition, removeLineEnding, removeLineEnding, renameSIdRefs, setBackgroundColor, setId, setName, setProgramName, setProgramVersion, setReferenceRenderInformation, setReferenceRenderInformationId, unsetBackgroundColor, unsetId, unsetName, unsetProgramName, unsetProgramVersion, unsetReferenceRenderInformationaddCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, connectToChild, deleteDisabledPlugins, deleteDisabledPlugins, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getDisabledPlugin, getIdAttribute, getLevel, getLine, getListOfAllElements, getListOfAllElements, getListOfAllElementsFromPlugins, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumDisabledPlugins, getNumPlugins, getPackageCoreVersion, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getPrefix, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getURI, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetIdAttribute, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, isSetUserData, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeFromParentAndDelete, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setIdAttribute, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, toXMLNode, unsetAnnotation, unsetCVTerms, unsetIdAttribute, unsetMetaId, unsetModelHistory, unsetNotes, unsetSBOTerm, unsetUserDatapublic GlobalRenderInformation(long level, long version, long pkgVersion) throws SBMLConstructorException
GlobalRenderInformation using the given SBML Level, Version
and “render” package version.
level - a long integer, the SBML Level to assign to this
GlobalRenderInformation.
version - a long integer, the SBML Version to assign to this
GlobalRenderInformation.
pkgVersion - a long integer, the SBML Render Version to assign to
this GlobalRenderInformation.
SBMLConstructorExceptionSBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public GlobalRenderInformation(long level, long version) throws SBMLConstructorException
GlobalRenderInformation using the given SBML Level, Version
and “render” package version.
level - a long integer, the SBML Level to assign to this
GlobalRenderInformation.
version - a long integer, the SBML Version to assign to this
GlobalRenderInformation.
pkgVersion - a long integer, the SBML Render Version to assign to
this GlobalRenderInformation.
SBMLConstructorExceptionSBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public GlobalRenderInformation(long level) throws SBMLConstructorException
GlobalRenderInformation using the given SBML Level, Version
and “render” package version.
level - a long integer, the SBML Level to assign to this
GlobalRenderInformation.
version - a long integer, the SBML Version to assign to this
GlobalRenderInformation.
pkgVersion - a long integer, the SBML Render Version to assign to
this GlobalRenderInformation.
SBMLConstructorExceptionSBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public GlobalRenderInformation() throws SBMLConstructorException
GlobalRenderInformation using the given SBML Level, Version
and “render” package version.
level - a long integer, the SBML Level to assign to this
GlobalRenderInformation.
version - a long integer, the SBML Version to assign to this
GlobalRenderInformation.
pkgVersion - a long integer, the SBML Render Version to assign to
this GlobalRenderInformation.
SBMLConstructorExceptionSBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public GlobalRenderInformation(RenderPkgNamespaces renderns) throws SBMLConstructorException
GlobalRenderInformation using the given RenderPkgNamespaces
object.
The package namespaces object used in this constructor is derived from a
SBMLNamespaces object, which encapsulates SBML Level/Version/namespaces
information. It is used to communicate the SBML Level, Version, and
package version and name information used in addition to SBML Level 3 Core. A
common approach to using libSBML's SBMLNamespaces facilities is to create an
package namespace object somewhere in a program once, then hand that object
as needed to object constructors of that package that accept it as and
argument, such as this one.
renderns - the RenderPkgNamespaces object.
SBMLConstructorExceptionSBMLDocument having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public GlobalRenderInformation(RenderPkgNamespaces renderns, java.lang.String id) throws SBMLConstructorException
GlobalRenderInformation with the given id
and all lists empty.
renderns - the SBMLNamespaces object for the SBML 'render' packageid - the new id for the GlobalRenderInformation.
SBMLConstructorExceptionSBMLNamespaces object.public GlobalRenderInformation(GlobalRenderInformation orig) throws SBMLConstructorException
GlobalRenderInformation.
orig - the GlobalRenderInformation instance to copy.SBMLConstructorExceptionpublic 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 GlobalRenderInformation.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 GlobalRenderInformation.delete() themselves.
delete in class RenderInformationBasepublic GlobalRenderInformation cloneObject()
GlobalRenderInformation object.
cloneObject in class RenderInformationBaseGlobalRenderInformation object.public ListOfGlobalStyles getListOfGlobalStyles()
ListOfGlobalStyles from this GlobalRenderInformation.
ListOfGlobalStyles from this GlobalRenderInformation.
GlobalRenderInformation.addGlobalStyle(GlobalStyle object),
GlobalRenderInformation.createGlobalStyle(),
GlobalRenderInformation.getGlobalStyle(String sid),
GlobalRenderInformation.getGlobalStyle(long n),
GlobalRenderInformation.getNumGlobalStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public ListOfGlobalStyles getListOfStyles()
ListOfGlobalStyles from this GlobalRenderInformation.
ListOfGlobalStyles from this GlobalRenderInformation.
GlobalRenderInformation.addStyle(GlobalStyle object),
#createStyle(),
GlobalRenderInformation.getStyle(String sid),
GlobalRenderInformation.getStyle(long n),
GlobalRenderInformation.getNumStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public GlobalStyle getGlobalStyle(long n)
GlobalStyle from the GlobalRenderInformation.
n - a long integer representing the index of the GlobalStyle to
retrieve.
GlobalStyle in the ListOfGlobalStyles within this
GlobalRenderInformation or null if no such object exists.
GlobalRenderInformation.addGlobalStyle(GlobalStyle object),
GlobalRenderInformation.createGlobalStyle(),
GlobalRenderInformation.getGlobalStyle(String sid),
GlobalRenderInformation.getNumGlobalStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public GlobalStyle getStyle(long n)
GlobalStyle from the GlobalRenderInformation.
n - a long integer representing the index of the GlobalStyle to
retrieve.
GlobalStyle in the ListOfGlobalStyles within this
GlobalRenderInformation or null if no such object exists.
GlobalRenderInformation.addStyle(GlobalStyle object),
#createStyle(),
GlobalRenderInformation.getStyle(String sid),
GlobalRenderInformation.getNumStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public GlobalStyle getGlobalStyle(java.lang.String id)
GlobalStyle from the GlobalRenderInformation.
id - a string representing the identifier of the ColorDefinition to
remove.
GlobalStyle in this GlobalRenderInformation based on the
identifier or null if no such GlobalStyle exists.
GlobalRenderInformation.addGlobalStyle(GlobalStyle object),
GlobalRenderInformation.createGlobalStyle(),
GlobalRenderInformation.getGlobalStyle(String sid),
GlobalRenderInformation.getNumGlobalStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)ListOf#appendAndOwn() or ListOf#insertAndOwn()
functions. All other functions in libsbml add a copy of the element,
and do not transfer ownership of the pointer.
public GlobalStyle getStyle(java.lang.String id)
GlobalStyle from the GlobalRenderInformation.
id - a string representing the identifier of the ColorDefinition to
remove.
GlobalStyle in this GlobalRenderInformation based on the
identifier or null if no such GlobalStyle exists.
GlobalRenderInformation.addStyle(GlobalStyle object),
#createStyle(),
GlobalRenderInformation.getStyle(String sid),
GlobalRenderInformation.getNumStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public int addGlobalStyle(GlobalStyle gs)
GlobalStyle to this GlobalRenderInformation.
gs - the GlobalStyle object to add.
LIBSBML_OPERATION_SUCCESS
LIBSBML_OPERATION_FAILED
LIBSBML_INVALID_OBJECT
LIBSBML_LEVEL_MISMATCH
LIBSBML_VERSION_MISMATCH
LIBSBML_PKG_VERSION_MISMATCH
LIBSBML_DUPLICATE_OBJECT_ID
GlobalRenderInformation.createGlobalStyle(),
GlobalRenderInformation.getGlobalStyle(String sid),
GlobalRenderInformation.getGlobalStyle(long n),
GlobalRenderInformation.getNumGlobalStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)create)
for alternatives that do not lead to these issues.
public int addStyle(GlobalStyle gs)
GlobalStyle to this GlobalRenderInformation.
gs - the GlobalStyle object to add.
LIBSBML_OPERATION_SUCCESS
LIBSBML_OPERATION_FAILED
LIBSBML_INVALID_OBJECT
LIBSBML_LEVEL_MISMATCH
LIBSBML_VERSION_MISMATCH
LIBSBML_PKG_VERSION_MISMATCH
LIBSBML_DUPLICATE_OBJECT_ID
#createStyle(),
GlobalRenderInformation.getStyle(String sid),
GlobalRenderInformation.getStyle(long n),
GlobalRenderInformation.getNumStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)create)
for alternatives that do not lead to these issues.
public long getNumGlobalStyles()
GlobalStyle objects in this GlobalRenderInformation.
GlobalStyle objects in this GlobalRenderInformation.
GlobalRenderInformation.addGlobalStyle(GlobalStyle object),
GlobalRenderInformation.createGlobalStyle(),
GlobalRenderInformation.getGlobalStyle(String sid),
GlobalRenderInformation.getGlobalStyle(long n),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public long getNumStyles()
GlobalStyle objects in this GlobalRenderInformation.
GlobalStyle objects in this GlobalRenderInformation.
GlobalRenderInformation.addStyle(GlobalStyle object),
#createStyle(),
GlobalRenderInformation.getStyle(String sid),
GlobalRenderInformation.getStyle(long n),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public GlobalStyle createGlobalStyle()
GlobalStyle object, adds it to this GlobalRenderInformation
object and returns the GlobalStyle object created.
GlobalStyle object instance.
GlobalRenderInformation.addGlobalStyle(GlobalStyle object),
GlobalRenderInformation.getGlobalStyle(String sid),
GlobalRenderInformation.getGlobalStyle(long n),
GlobalRenderInformation.getNumGlobalStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public GlobalStyle createStyle(java.lang.String id)
GlobalStyle object with the given id, adds it to this GlobalRenderInformation
object and returns the GlobalStyle object created.
GlobalStyle object instance.
GlobalRenderInformation.addStyle(GlobalStyle object),
GlobalRenderInformation.getStyle(String sid),
GlobalRenderInformation.getStyle(long n),
GlobalRenderInformation.getNumStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid),
GlobalRenderInformation.removeGlobalStyle(long n)public GlobalStyle removeGlobalStyle(long n)
GlobalStyle from this GlobalRenderInformation and returns
a pointer to it.
n - a long integer representing the index of the GlobalStyle to
remove.
GlobalStyle in this GlobalRenderInformation.
GlobalRenderInformation.addGlobalStyle(GlobalStyle object),
GlobalRenderInformation.createGlobalStyle(),
GlobalRenderInformation.getGlobalStyle(String sid),
GlobalRenderInformation.getGlobalStyle(long n),
GlobalRenderInformation.getNumGlobalStyles(),
GlobalRenderInformation.removeGlobalStyle(String sid)ListOf#appendAndOwn() or ListOf#insertAndOwn()
functions. All other functions in libsbml add a copy of the element,
and do not transfer ownership of the pointer.
public GlobalStyle removeGlobalStyle(java.lang.String sid)
GlobalStyle with the given id from this GlobalRenderInformation
and returns a pointer to it.
sid - the id of the GlobalStyle to remove.
GlobalStyle in this GlobalRenderInformation.
GlobalRenderInformation.addGlobalStyle(GlobalStyle object),
GlobalRenderInformation.createGlobalStyle(),
GlobalRenderInformation.getGlobalStyle(String sid),
GlobalRenderInformation.getGlobalStyle(long n),
GlobalRenderInformation.getNumGlobalStyles(),
GlobalRenderInformation.removeGlobalStyle(long n)ListOf#appendAndOwn() or ListOf#insertAndOwn()
functions. All other functions in libsbml add a copy of the element,
and do not transfer ownership of the pointer.
public GlobalStyle removeStyle(long n)
GlobalStyle from this GlobalRenderInformation and returns
a pointer to it.
n - a long integer representing the index of the GlobalStyle to
remove.
GlobalStyle in this GlobalRenderInformation.
GlobalRenderInformation.addStyle(GlobalStyle object),
#createStyle(),
GlobalRenderInformation.getStyle(String sid),
GlobalRenderInformation.getStyle(long n),
GlobalRenderInformation.getNumStyles(),
GlobalRenderInformation.removeGlobalStyle(long n),
GlobalRenderInformation.removeGlobalStyle(String sid)ListOf#appendAndOwn() or ListOf#insertAndOwn()
functions. All other functions in libsbml add a copy of the element,
and do not transfer ownership of the pointer.
public java.lang.String getElementName()
GlobalRenderInformation object.
For GlobalRenderInformation, the XML element name is always
'renderInformation'.
getElementName in class SBase'renderInformation'.public int getTypeCode()
GlobalRenderInformation object.
LibSBML attaches an identifying code to every kind of SBML object. These
are integer constants known as SBML type codes. The names of all
the codes begin with the characters SBML_.
In the Java language interface for libSBML, the
type codes are defined as static integer constants in the interface class
libsbmlConstants. Note that different Level 3
package plug-ins may use overlapping type codes; to identify the package
to which a given object belongs, call the
method on the object.
SBase.getPackageName()
The exception to this is lists: all SBML-style list elements have the type
SBML_LIST_OF, regardless of what package they
are from.
getTypeCode in class RenderInformationBaseSBML_RENDER_GLOBALRENDERINFORMATION.
GlobalRenderInformation.getElementName(),
SBase.getPackageName()ListOf.getItemTypeCode()).
public SBase getElementBySId(java.lang.String id)
id in the model-wide
SId namespace, or null if no such object is found.
getElementBySId in class RenderInformationBaseid - a string representing the id attribute of the object to
retrieve.
SBase element with the given id. If no such
object is found, this method returns null.public SBase getElementByMetaId(java.lang.String metaid)
metaid, or null
if no such object is found.
getElementByMetaId in class RenderInformationBasemetaid - a string representing the metaid attribute of the object to
retrieve.
SBase element with the given metaid. If no
such object is found this method returns null.public void parseXML(XMLNode node)
parseXML in class RenderInformationBasenode - the XMLNode object reference that describes the GlobalRenderInformation
object to be instantiated.public XMLNode toXML()
XMLNode object from this GlobalRenderInformation object.
XMLNode with the XML representation for the
GlobalRenderInformation object.