public class ListOfGradientDefinitions extends ListOf
LinearGradient and
RadialGradient
Each RenderInformation object can have it's own list of gradient definitions.
| Constructor and Description |
|---|
ListOfGradientDefinitions()
Constructor which instantiates an empty
ListOfGradientDefinitions object. |
ListOfGradientDefinitions(ListOfGradientDefinitions source)
Copy constructor.
|
ListOfGradientDefinitions(long level)
Constructor which instantiates an empty
ListOfGradientDefinitions object. |
ListOfGradientDefinitions(long level,
long version)
Constructor which instantiates an empty
ListOfGradientDefinitions object. |
ListOfGradientDefinitions(long level,
long version,
long pkgVersion)
Constructor which instantiates an empty
ListOfGradientDefinitions object. |
ListOfGradientDefinitions(RenderPkgNamespaces renderns)
Ctor.
|
ListOfGradientDefinitions(XMLNode node)
Creates a new
ListOfGradientDefinitions object from the given XMLNode object. |
ListOfGradientDefinitions(XMLNode node,
long l2version)
Creates a new
ListOfGradientDefinitions object from the given XMLNode object. |
| Modifier and Type | Method and Description |
|---|---|
ListOfGradientDefinitions |
cloneObject()
Creates and returns a deep copy of the
ListOfGradientDefinitions object. |
void |
delete()
Explicitly deletes the underlying native object.
|
SBase |
get(long i)
Returns a pointer to the
GradientBase with the given index or null if
the index is invalid. |
GradientBase |
get(java.lang.String id)
|
java.lang.String |
getElementName()
Returns the XML element name of this object, which for
ListOfGradientDefinitions, is always 'listOfGradientDefinitions'. |
int |
getItemTypeCode()
Get the type code of the objects contained in this
ListOf. |
boolean |
isValidTypeForList(SBase item)  |
SBase |
remove(long n)
Removes the nth item from this
ListOfGradientDefinitions items and returns a pointer to
it. |
GradientBase |
remove(java.lang.String sid)
Removes item in this
ListOfGradientDefinitions items with the given identifier. |
XMLNode |
toXML()
Creates an
XMLNode object from this ListOfGradientDefinitions object. |
append, appendAndOwn, appendFrom, clear, clear, connectToChild, getElementByMetaId, getElementBySId, getTypeCode, insert, insertAndOwn, removeFromParentAndDelete, sizeaddCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, deleteDisabledPlugins, deleteDisabledPlugins, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getDisabledPlugin, getLevel, getLine, getListOfAllElements, getListOfAllElements, getListOfAllElementsFromPlugins, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumDisabledPlugins, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getPrefix, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getURI, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, isSetUserData, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameSIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, toXMLNode, unsetAnnotation, unsetCVTerms, unsetId, unsetMetaId, unsetModelHistory, unsetName, unsetNotes, unsetSBOTerm, unsetUserDatapublic ListOfGradientDefinitions(XMLNode node, long l2version) throws SBMLConstructorException
ListOfGradientDefinitions object from the given XMLNode object.
The XMLNode object has to contain a valid XML representation of a
ListOfGradientDefinitions object as defined in the render extension specification.
This method is normally called when render information is read from a file and
should normally not have to be called explicitly.
node - the XMLNode object reference that describes the ListOfGradientDefinitions
object to be instantiated.SBMLConstructorExceptionpublic ListOfGradientDefinitions(XMLNode node) throws SBMLConstructorException
ListOfGradientDefinitions object from the given XMLNode object.
The XMLNode object has to contain a valid XML representation of a
ListOfGradientDefinitions object as defined in the render extension specification.
This method is normally called when render information is read from a file and
should normally not have to be called explicitly.
node - the XMLNode object reference that describes the ListOfGradientDefinitions
object to be instantiated.SBMLConstructorExceptionpublic ListOfGradientDefinitions(long level, long version, long pkgVersion) throws SBMLConstructorException
ListOfGradientDefinitions object.SBMLConstructorExceptionpublic ListOfGradientDefinitions(long level, long version) throws SBMLConstructorException
ListOfGradientDefinitions object.SBMLConstructorExceptionpublic ListOfGradientDefinitions(long level) throws SBMLConstructorException
ListOfGradientDefinitions object.SBMLConstructorExceptionpublic ListOfGradientDefinitions() throws SBMLConstructorException
ListOfGradientDefinitions object.SBMLConstructorExceptionpublic ListOfGradientDefinitions(RenderPkgNamespaces renderns) throws SBMLConstructorException
SBMLConstructorExceptionpublic ListOfGradientDefinitions(ListOfGradientDefinitions source) throws SBMLConstructorException
ListOfGradientDefinitions object.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 ListOfGradientDefinitions.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 ListOfGradientDefinitions.delete() themselves.
public ListOfGradientDefinitions cloneObject()
ListOfGradientDefinitions object.
cloneObject in class ListOfListOfGradientDefinitionspublic int getItemTypeCode()
ListOf.
LibSBML attaches an identifying code to every
kind of SBML object. These are known as SBML type codes. In
other languages, the set of type codes is stored in an enumeration in
the Java language interface for libSBML, the type codes are defined as
static integer constants in the interface class libsbmlConstants. The names of the type codes all begin with the
characters SBML_.
getItemTypeCode in class ListOfListOf
instance, or SBML_UNKNOWN (default).ListOf.getElementName(),
SBase.getPackageName()public boolean isValidTypeForList(SBase item)
public XMLNode toXML()
XMLNode object from this ListOfGradientDefinitions object.
XMLNode with the XML representation for the
ListOfGradientDefinitions object.public java.lang.String getElementName()
ListOfGradientDefinitions, is always 'listOfGradientDefinitions'.
getElementName in class ListOf'listOfGradientDefinitions'.public SBase get(long i)
GradientBase with the given index or null if
the index is invalid.
get in class ListOfi - index of the GradientBase object to be returned
GradientBase at the given index or null.ListOf.size()public GradientBase get(java.lang.String id)
id - id of the GradientBase object to be returned
GradientBase at the given id or null.public SBase remove(long n)
ListOfGradientDefinitions items and returns a pointer to
it.
The caller owns the returned item and is responsible for deleting it.
remove in class ListOfn - the index of the item to remove
ListOf.size()public GradientBase remove(java.lang.String sid)
ListOfGradientDefinitions items with the given identifier.
The caller owns the returned item and is responsible for deleting it.
If none of the items in this list have the identifier sid, then @c
null is returned.
sid - the identifier of the item to remove