org.sbml.jsbml.ext.comp
public class CompSBasePlugin extends AbstractSBasePlugin
Modifier and Type | Field and Description |
---|---|
(package private) ListOf<ReplacedElement> |
listOfReplacedElements |
(package private) ReplacedBy |
replacedBy |
private static long |
serialVersionUID
Generated serial version identifier.
|
extendedSBase, packageVersion
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
CompSBasePlugin()
Creates an CompSBasePlugin instance
|
CompSBasePlugin(CompSBasePlugin obj)
Clone constructor
|
CompSBasePlugin(SBase extendedSBase)
Creates a CompSBasePlugin instance with a level and version.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addReplacedElement(ReplacedElement replacedElement)
Adds a new element to listOfReplacedElements.
|
CompSBasePlugin |
clone()
clones this class
|
ReplacedBy |
createReplacedBy()
Creates a new
ReplacedBy element and sets it in this CompSBasePlugin . |
ReplacedElement |
createReplacedElement()
Creates a new
ReplacedElement element and adds it to the ListOfReplacedElements list. |
boolean |
getAllowsChildren() |
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
java.lang.String |
getElementNamespace()
Returns the XML namespace (URI) of the package extension of this plugin object.
|
ListOf<ReplacedElement> |
getListOfReplacedElements()
Returns the listOfReplacedElements
|
java.lang.String |
getPackageName()
Returns the package name of this plugin object.
|
SBase |
getParent() |
SBase |
getParentSBMLObject()
Returns the parent
SBase object to which this plugin object connected. |
java.lang.String |
getPrefix()
Returns the prefix of the package extension of this plugin object.
|
ReplacedBy |
getReplacedBy()
Returns the value of replacedBy
|
int |
getReplacedElementCount()
Returns the number of
ReplacedElement objects in this CompSBasePlugin . |
java.lang.String |
getURI()
Gets the URI to which this element belongs to.
|
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isSetListOfReplacedElements()
Returns
true , if listOfReplacedElements contains at least one element,
otherwise false |
boolean |
isSetReplacedBy()
Returns whether replacedBy is set
|
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Reads and sets the attribute if it is know from this
SBasePlugin . |
void |
removeReplacedElement(int i)
Removes the ith element from the ListOfReplacedElements.
|
boolean |
removeReplacedElement(ReplacedElement replacedElement)
Removes an element from listOfReplacedElements.
|
void |
setListOfReplacedElements(ListOf<ReplacedElement> listOfReplacedElements)
Sets the listOfReplacedElements.
|
void |
setReplacedBy(ReplacedBy replacedBy)
Sets the value of replacedBy
|
java.lang.String |
toString() |
boolean |
unsetListOfReplacedElements()
Returns
true , if listOfReplacedElements contained at least one element,
otherwise false |
boolean |
unsetReplacedBy()
Unsets the variable replacedBy
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a
Map containing the XML attributes of this object. |
equals, getExtendedSBase, getLevel, getPackageVersion, getSBMLDocument, getVersion, hashCode, isSetExtendedSBase
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
ListOf<ReplacedElement> listOfReplacedElements
ReplacedBy replacedBy
public CompSBasePlugin()
public CompSBasePlugin(SBase extendedSBase)
level
- version
- public CompSBasePlugin(CompSBasePlugin obj)
public java.lang.String getElementNamespace()
SBasePlugin
public java.lang.String getPackageName()
SBasePlugin
public java.lang.String getPrefix()
SBasePlugin
public java.lang.String getURI()
SBasePlugin
public SBase getParent()
getParent
in interface javax.swing.tree.TreeNode
getParent
in class AbstractTreeNode
public SBase getParentSBMLObject()
SBasePlugin
SBase
object to which this plugin object connected.getParentSBMLObject
in interface SBasePlugin
getParentSBMLObject
in class AbstractSBasePlugin
SBase
object to which this plugin object connected.public CompSBasePlugin clone()
clone
in interface SBasePlugin
clone
in class AbstractSBasePlugin
public void initDefaults()
public ReplacedBy getReplacedBy()
public boolean isSetReplacedBy()
public void setReplacedBy(ReplacedBy replacedBy)
public ReplacedBy createReplacedBy()
ReplacedBy
element and sets it in this CompSBasePlugin
.ReplacedBy
element.public boolean unsetReplacedBy()
true
, if replacedBy was set before,
otherwise false
public boolean isSetListOfReplacedElements()
true
, if listOfReplacedElements contains at least one element,
otherwise false
true
, if listOfReplacedElements contains at least one element,
otherwise false
public int getReplacedElementCount()
ReplacedElement
objects in this CompSBasePlugin
.ReplacedElement
objects in this CompSBasePlugin
.public ListOf<ReplacedElement> getListOfReplacedElements()
public void setListOfReplacedElements(ListOf<ReplacedElement> listOfReplacedElements)
listOfReplacedElements
- public boolean unsetListOfReplacedElements()
true
, if listOfReplacedElements contained at least one element,
otherwise false
true
, if listOfReplacedElements contained at least one element,
otherwise false
public boolean addReplacedElement(ReplacedElement replacedElement)
listOfReplacedElements is initialized if necessary.
replacedElement
- true
(as specified by Collection.add
)public boolean removeReplacedElement(ReplacedElement replacedElement)
replacedElement
- the element to be removed from the listtrue
if this list contained the specified elementList.remove(Object)
public void removeReplacedElement(int i)
i
- the index of the element to be removedjava.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public ReplacedElement createReplacedElement()
ReplacedElement
element and adds it to the ListOfReplacedElements list.ReplacedElement
element.public java.lang.String toString()
toString
in class AbstractTreeNode
public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBasePlugin
SBasePlugin
.attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBasePlugin
Map
containing the XML attributes of this object.writeXMLAttributes
in interface SBasePlugin
writeXMLAttributes
in class AbstractSBasePlugin
Map
containing the XML attributes of this object.public boolean getAllowsChildren()
public int getChildCount()
public javax.swing.tree.TreeNode getChildAt(int index)