public abstract class AbstractSBasePlugin extends AbstractTreeNode implements SBasePlugin
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
elementNamespace |
protected SBase |
extendedSBase |
private static org.apache.log4j.Logger |
logger |
protected int |
packageVersion |
private static long |
serialVersionUID
Generated serial version identifier.
|
listOfListeners, parent, resourceBundle
Constructor and Description |
---|
AbstractSBasePlugin() |
AbstractSBasePlugin(SBase extendedSBase) |
AbstractSBasePlugin(SBasePlugin plugin)
This method will need to be further tested
|
Modifier and Type | Method and Description |
---|---|
abstract SBasePlugin |
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 . |
java.lang.String |
getElementNamespace()
Returns the XML namespace (URI) of the package extension of this plugin object.
|
SBase |
getExtendedSBase()
Returns the SBase object that is extended by this plug-in.
|
int |
getLevel()
Returns the SBML level of this plugin object.
|
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()
Returns the SBML version of this plugin object.
|
int |
hashCode() |
boolean |
isSetExtendedSBase()
Check whether an extended SBase has been set.
|
boolean |
isSetPackageVersion()
Returns
true if a package version is set, false otherwise. |
boolean |
removeFromParent()
This method is designed to be overridden for non-independent child nodes
|
void |
setExtendedSBase(SBase extendedSBase)
Sets the extended
SBase . |
void |
setNamespace(java.lang.String namespace)
Sets the XML namespace to which this
SBasePlugin belong. |
void |
setPackageVersion(int packageVersion)
Sets the package version.
|
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, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
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
private static final transient org.apache.log4j.Logger logger
protected SBase extendedSBase
protected int packageVersion
protected java.lang.String elementNamespace
public AbstractSBasePlugin()
public AbstractSBasePlugin(SBase extendedSBase)
extendedSBase
- public AbstractSBasePlugin(SBasePlugin plugin)
plugin
- public abstract SBasePlugin 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 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 java.lang.String getElementNamespace()
SBasePlugin
getElementNamespace
in interface SBasePlugin
SBasePlugin.getURI()
public SBase getExtendedSBase()
SBasePlugin
getExtendedSBase
in interface SBasePlugin
public int getLevel()
SBasePlugin
getLevel
in interface SBasePlugin
SBase.getLevel()
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 int getVersion()
SBasePlugin
getVersion
in interface SBasePlugin
SBase.getVersion()
public int hashCode()
hashCode
in interface SBasePlugin
hashCode
in class AbstractTreeNode
public boolean isSetExtendedSBase()
SBasePlugin
isSetExtendedSBase
in interface SBasePlugin
public boolean isSetPackageVersion()
SBasePlugin
true
if a package version is set, false
otherwise.isSetPackageVersion
in interface SBasePlugin
true
if a package version is set, false
otherwise.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 void setNamespace(java.lang.String namespace)
SBasePlugin
belong.
This an internal method that should not be used outside of the main jsbml code (core + packages). One class should always belong to the same namespace, although the namespaces can have different level and version (and package version). You have to know what you are doing when using this method.
namespace
- the XML namespace to which this SBasePlugin
belong.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 void setPackageVersion(int packageVersion)
SBasePlugin
setPackageVersion
in interface SBasePlugin
packageVersion
- the packageVersion to setpublic 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.