public class ArraysSBasePlugin extends AbstractSBasePlugin implements IdManager
ArraysSBasePlugin class extends the SBase class by adding
an optional ListOfDimensions child and a single optional
Index child.
The ArraysSBasePlugin class codifies the extensions to the
SBase class defined in the 'Arrays' package. These extensions allows
the modeler to define one or more Dimension elements to indicate the
parent SBase object is arrayed. In addition, these extensions allows
the definition of one or more Index elements to reference the parent
SBase that has one or more array dimensions.
Dimension,
Index,
Serialized FormextendedSBase, packageVersionlistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
ArraysSBasePlugin()
Creates an ArraysSBasePlugin instance
|
ArraysSBasePlugin(ArraysSBasePlugin obj)
Clone constructor
|
ArraysSBasePlugin(SBase extendedSBase)
Creates an ArraysSBasePlugin with a level and a version.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(SBase sbase) |
boolean |
addDimension(Dimension field)
Adds a new
Dimension to the listOfDimensions. |
boolean |
addIndex(Index field)
Adds a new
Index to the listOfIndices. |
ArraysSBasePlugin |
clone() |
Dimension |
createDimension()
Creates a new Dimension element and adds it to the ListOfDimensions list.
|
Dimension |
createDimension(String id)
Creates a new
Dimension element and adds it to the ListOfDimensions list. |
Index |
createIndex()
Creates a new Index element and adds it to the listOfIndices list.
|
boolean |
equals(Object obj) |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
Dimension |
getDimension(int i)
Gets an element from the listOfDimensions at the given index.
|
Dimension |
getDimension(String fieldId)
Gets an element from the listOfDimensions, with the given id.
|
Dimension |
getDimensionByArrayDimension(int i)
Gets an element from the listOfDimensions at the given arrayDimension.
|
int |
getDimensionCount()
Returns the number of
Dimensions in this ArraysSBasePlugin. |
String |
getElementNamespace() |
Index |
getIndex(int i)
Gets an element from the listOfIndices at the given index.
|
Index |
getIndex(int dim,
String attribute)
Gets an element from the listOfIndices based on array dimension
and referenced attribute.
|
int |
getIndexCount()
Returns the number of
Indexs in this ArraysSBasePlugin. |
ListOf<Dimension> |
getListOfDimensions()
Returns the listOfDimensions.
|
ListOf<Index> |
getListOfIndices()
Returns the listOfIndices.
|
int |
getNumDimensions()
Returns the number of
Dimensions in this ArraysSBasePlugin. |
int |
getNumIndices()
Returns the number of
Indexs in this ArraysSBasePlugin. |
String |
getPackageName() |
String |
getPrefix() |
String |
getURI() |
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isSetListOfDimensions()
Returns
true, if listOfDimensions contains at least one element. |
boolean |
isSetListOfIndices()
Returns
true, if listOfIndices contains at least one element. |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
boolean |
register(SBase sbase) |
boolean |
removeDimension(Dimension field)
Removes an element from the listOfDimensions.
|
Dimension |
removeDimension(int i)
Removes an element from the listOfDimensions at the given index.
|
Dimension |
removeDimension(String fieldId)
Removes an element from the listOfDimensions.
|
Dimension |
removeDimensionByArrayDimension(int arrayDim)
Removes an element from the listOfDimensions by array dimension.
|
boolean |
removeIndex(Index field)
Removes an element from the listOfIndices.
|
Index |
removeIndex(int i)
Removes an element from the listOfIndices at the given index.
|
boolean |
removeIndexByArrayDimension(int arrayDim)
Removes an element from the listOfIndices based on array dimension.
|
void |
setListOfDimensions(ListOf<Dimension> listOfDimensions)
Sets the given
ListOf<Dimension>. |
void |
setListOfIndices(ListOf<Index> listOfIndices)
Sets the given
ListOf<Index>. |
boolean |
unregister(SBase sbase) |
boolean |
unsetListOfDimensions()
Returns
true, if listOfDimensions contain at least one element,
otherwise false. |
boolean |
unsetListOfIndices()
Returns
true, if listOfIndices contain at least one element,
otherwise false. |
Map<String,String> |
writeXMLAttributes() |
fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getExtendedSBase, getLevel, getPackageVersion, getParentSBMLObject, getSBMLDocument, getVersion, isSetExtendedSBase, removeFromParent, setExtendedSBaseaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getParent, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic ArraysSBasePlugin()
public ArraysSBasePlugin(SBase extendedSBase)
extendedSBase - public ArraysSBasePlugin(ArraysSBasePlugin obj)
public ArraysSBasePlugin clone()
clone in interface SBasePluginclone in class AbstractSBasePluginpublic void initDefaults()
public boolean isSetListOfIndices()
true, if listOfIndices contains at least one element.true, if listOfIndices contains at least one element,
otherwise false.public ListOf<Index> getListOfIndices()
public void setListOfIndices(ListOf<Index> listOfIndices)
ListOf<Index>. If listOfIndices
was defined before and contains some elements, they are all unset.listOfIndices - public boolean unsetListOfIndices()
true, if listOfIndices contain at least one element,
otherwise false.true, if listOfIndices contain at least one element,
otherwise false.public boolean addIndex(Index field)
Index to the listOfIndices.
The listOfIndices is initialized if necessary.
field - the element to add to the listCollection#add)public boolean removeIndex(Index field)
field - the element to be removed from the list.List#remove(Object)public boolean removeIndexByArrayDimension(int arrayDim)
arrayDim - the element with given array dimension to be removed from the list.List#remove(Object)public Index removeIndex(int i)
i - the index where to remove the Index.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public Index createIndex()
public Index getIndex(int i)
i - the index of the Index element to get.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public Index getIndex(int dim, String attribute)
dim - the index of the Index element to get.attribute - public int getIndexCount()
Indexs in this ArraysSBasePlugin.Indexs in this ArraysSBasePlugin.public int getNumIndices()
Indexs in this ArraysSBasePlugin.Indexs in this ArraysSBasePlugin.getIndexCount()public boolean isSetListOfDimensions()
true, if listOfDimensions contains at least one element.true, if listOfDimensions contains at least one element,
otherwise false.public ListOf<Dimension> getListOfDimensions()
public void setListOfDimensions(ListOf<Dimension> listOfDimensions)
ListOf<Dimension>. If listOfDimensions
was defined before and contains some elements, they are all unset.listOfDimensions - public boolean unsetListOfDimensions()
true, if listOfDimensions contain at least one element,
otherwise false.true, if listOfDimensions contain at least one element,
otherwise false.public boolean addDimension(Dimension field)
Dimension to the listOfDimensions.
The listOfDimensions is initialized if necessary.
field - the element to add to the listCollection#add)public boolean removeDimension(Dimension field)
field - the element to be removed from the list.List#remove(Object)public Dimension removeDimension(String fieldId)
fieldId - the id of the element to be removed from the list.public Dimension removeDimensionByArrayDimension(int arrayDim)
arrayDim - the array dimension of the element to be removed from the list.public Dimension removeDimension(int i)
i - the index where to remove the Dimension.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public Dimension createDimension()
public Dimension createDimension(String id)
Dimension element and adds it to the ListOfDimensions list.Dimension element.public Dimension getDimension(int i)
i - the dimension of the Dimension element to get.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > 2).public Dimension getDimensionByArrayDimension(int i)
i - the dimension of the Dimension element to get.public Dimension getDimension(String fieldId)
fieldId - the id of the Dimension element to get.null.public int getDimensionCount()
Dimensions in this ArraysSBasePlugin.Dimensions in this ArraysSBasePlugin.public int getNumDimensions()
Dimensions in this ArraysSBasePlugin.Dimensions in this ArraysSBasePlugin.getDimensionCount()public String getElementNamespace()
getElementNamespace in interface SBasePluginpublic String getPackageName()
getPackageName in interface SBasePluginpublic String getPrefix()
getPrefix in interface SBasePluginpublic String getURI()
getURI in interface SBasePluginpublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasePluginpublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasePluginwriteXMLAttributes in class AbstractSBasePluginpublic boolean unregister(SBase sbase)
unregister in interface IdManagerpublic int hashCode()
hashCode in interface SBasePluginhashCode in class AbstractSBasePluginpublic boolean equals(Object obj)
equals in interface SBasePluginequals in class AbstractSBasePluginCopyright © 2009–2016. All rights reserved.