org.sbml.jsbml.ext
public abstract class AbstractSBasePlugin extends AbstractTreeNode implements SBasePlugin
Modifier and Type | Field and Description |
---|---|
protected SBase |
extendedSBase |
protected int |
packageVersion |
private static long |
serialVersionUID
Generated serial version identifier.
|
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
AbstractSBasePlugin() |
AbstractSBasePlugin(AbstractSBasePlugin plugin)
This method will need to be further tested
|
AbstractSBasePlugin(SBase extendedSBase) |
Modifier and Type | Method and Description |
---|---|
abstract AbstractSBasePlugin |
clone()
Creates a new instance of
SBasePlugin from this SBasePlugin . |
boolean |
equals(java.lang.Object object) |
void |
fireNodeAddedEvent()
All
TreeNodeChangeListener instances linked to this
TreeNode are informed about the adding of this Object to
an owning parent Object . |
void |
fireNodeRemovedEvent()
All
TreeNodeChangeListener instances linked to this
TreeNode are informed about the deletion of this TreeNode
from a parent Object . |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
All
TreeNodeChangeListener s are informed about the change in this
TreeNodeWithChangeSupport . |
SBase |
getExtendedSBase()
Returns the SBase object that is extended by this plug-in.
|
int |
getLevel() |
int |
getPackageVersion()
Returns the package version of the package extension of this plugin object.
|
SBase |
getParentSBMLObject()
Returns the parent
SBase object to which this plugin object connected. |
SBMLDocument |
getSBMLDocument()
Returns the parent
SBMLDocument of this plugin object. |
int |
getVersion() |
int |
hashCode() |
boolean |
isSetExtendedSBase()
Check whether an extended SBase has been set.
|
boolean |
removeFromParent()
This method is designed to be overridden for non-independent child nodes
|
void |
setExtendedSBase(SBase extendedSBase)
Sets the extended
SBase . |
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a
Map containing the XML attributes of this object. |
addAllChangeListeners, 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, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
getElementNamespace, getPackageName, getPrefix, getURI, readAttribute
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
protected SBase extendedSBase
protected int packageVersion
public AbstractSBasePlugin()
public AbstractSBasePlugin(SBase extendedSBase)
extendedSBase
- public AbstractSBasePlugin(AbstractSBasePlugin plugin)
plugin
- public int getLevel()
getLevel
in interface SBasePlugin
SBase.getLevel()
public int getVersion()
getVersion
in interface SBasePlugin
SBase.getVersion()
public SBase getExtendedSBase()
SBasePlugin
getExtendedSBase
in interface SBasePlugin
public abstract AbstractSBasePlugin clone()
SBasePlugin
SBasePlugin
from this SBasePlugin
.clone
in interface SBasePlugin
clone
in class AbstractTreeNode
SBasePlugin
from this SBasePlugin
.public boolean equals(java.lang.Object object)
equals
in interface SBasePlugin
equals
in class AbstractTreeNode
public boolean isSetExtendedSBase()
SBasePlugin
isSetExtendedSBase
in interface SBasePlugin
public int hashCode()
hashCode
in interface SBasePlugin
hashCode
in class AbstractTreeNode
public int getPackageVersion()
SBasePlugin
getPackageVersion
in interface SBasePlugin
public SBase getParentSBMLObject()
SBasePlugin
SBase
object to which this plugin object connected.getParentSBMLObject
in interface SBasePlugin
SBase
object to which this plugin object connected.public SBMLDocument getSBMLDocument()
SBasePlugin
SBMLDocument
of this plugin object.getSBMLDocument
in interface SBasePlugin
SBMLDocument
object of this plugin object.public void fireNodeAddedEvent()
TreeNodeWithChangeSupport
TreeNodeChangeListener
instances linked to this
TreeNode
are informed about the adding of this Object
to
an owning parent Object
.fireNodeAddedEvent
in interface TreeNodeWithChangeSupport
fireNodeAddedEvent
in class AbstractTreeNode
public void fireNodeRemovedEvent()
TreeNodeWithChangeSupport
TreeNodeChangeListener
instances linked to this
TreeNode
are informed about the deletion of this TreeNode
from a parent Object
.fireNodeRemovedEvent
in interface TreeNodeWithChangeSupport
fireNodeRemovedEvent
in class AbstractTreeNode
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
TreeNodeWithChangeSupport
TreeNodeChangeListener
s are informed about the change in this
TreeNodeWithChangeSupport
.firePropertyChange
in interface TreeNodeWithChangeSupport
firePropertyChange
in class AbstractTreeNode
propertyName
- Tells the TreeNodeChangeListener
the name of the
property whose value has been changed.oldValue
- This is the value before the change.newValue
- This gives the new value that is now the new value for the
given property..public void setExtendedSBase(SBase extendedSBase)
SBase
.
This method should not be called in general but it is necessary
to use it after cloning an SBasePlugin
to be able to set properly
the new parent/extended SBase
.
extendedSBase
- public boolean removeFromParent()
AbstractTreeNode
removeFromParent
in interface TreeNodeWithChangeSupport
removeFromParent
in class AbstractTreeNode
false
if this element is a root node, true
otherwise.TreeNodeWithChangeSupport.removeFromParent()
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBasePlugin
Map
containing the XML attributes of this object.writeXMLAttributes
in interface SBasePlugin
Map
containing the XML attributes of this object.