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
TreeNodeChangeListeners 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, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetElementNamespace, getPackageName, getPrefix, getURI, readAttributeaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetprivate 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 SBasePluginSBase.getLevel()public int getVersion()
getVersion in interface SBasePluginSBase.getVersion()public SBase getExtendedSBase()
SBasePlugingetExtendedSBase in interface SBasePluginpublic abstract AbstractSBasePlugin clone()
SBasePluginSBasePlugin from this SBasePlugin.clone in interface SBasePluginclone in class AbstractTreeNodeSBasePlugin from this SBasePlugin.public boolean equals(java.lang.Object object)
equals in interface SBasePluginequals in class AbstractTreeNodepublic boolean isSetExtendedSBase()
SBasePluginisSetExtendedSBase in interface SBasePluginpublic int hashCode()
hashCode in interface SBasePluginhashCode in class AbstractTreeNodepublic int getPackageVersion()
SBasePlugingetPackageVersion in interface SBasePluginpublic SBase getParentSBMLObject()
SBasePluginSBase object to which this plugin object connected.getParentSBMLObject in interface SBasePluginSBase object to which this plugin object connected.public SBMLDocument getSBMLDocument()
SBasePluginSBMLDocument of this plugin object.getSBMLDocument in interface SBasePluginSBMLDocument object of this plugin object.public void fireNodeAddedEvent()
TreeNodeWithChangeSupportTreeNodeChangeListener instances linked to this
TreeNode are informed about the adding of this Object to
an owning parent Object.fireNodeAddedEvent in interface TreeNodeWithChangeSupportfireNodeAddedEvent in class AbstractTreeNodepublic void fireNodeRemovedEvent()
TreeNodeWithChangeSupportTreeNodeChangeListener instances linked to this
TreeNode are informed about the deletion of this TreeNode
from a parent Object.fireNodeRemovedEvent in interface TreeNodeWithChangeSupportfireNodeRemovedEvent in class AbstractTreeNodepublic void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
TreeNodeWithChangeSupportTreeNodeChangeListeners are informed about the change in this
TreeNodeWithChangeSupport.firePropertyChange in interface TreeNodeWithChangeSupportfirePropertyChange in class AbstractTreeNodepropertyName - 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()
AbstractTreeNoderemoveFromParent in interface TreeNodeWithChangeSupportremoveFromParent in class AbstractTreeNodefalse if this element is a root node, true
otherwise.TreeNodeWithChangeSupport.removeFromParent()public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBasePluginMap containing the XML attributes of this object.writeXMLAttributes in interface SBasePluginMap containing the XML attributes of this object.