org.sbml.jsbml
public class History extends AnnotationElement
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
creation
Date of creation
|
private java.util.List<Creator> |
listOfCreators
|
private java.util.List<java.util.Date> |
listOfModification
Contains all the modified date instances of this
History . |
private java.util.Date |
modified
Last date of modification
|
private static long |
serialVersionUID
Generated serial version identifier.
|
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
History()
Creates a
History instance. |
History(History history)
|
Modifier and Type | Method and Description |
---|---|
void |
addCreator(Creator mc)
|
void |
addModifiedDate(java.util.Date date)
Adds a
Date of modification to this History . |
History |
clone() |
boolean |
equals(java.lang.Object object) |
boolean |
getAllowsChildren() |
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
java.util.Date |
getCreatedDate()
Returns the createdDate from the
History . |
Creator |
getCreator(int i)
|
int |
getCreatorCount()
|
java.util.List<Creator> |
getListOfCreators()
|
java.util.List<java.util.Date> |
getListOfModifiedDates()
Get the list of modifiedDate objects in this
History . |
java.util.Date |
getModifiedDate()
Returns the modifiedDate from the
History . |
java.util.Date |
getModifiedDate(int n)
Get the nth
Date object in the list of ModifiedDates in this
History . |
int |
getModifiedDateCount()
Get the number of ModifiedDate objects in this
History . |
int |
getNumCreators()
|
int |
getNumModifiedDates()
Get the number of ModifiedDate objects in this
History . |
int |
hashCode() |
boolean |
isEmpty()
Checks whether at least one attribute has been set for this
History . |
boolean |
isSetCreatedDate()
Predicate returning true or false depending on whether this
History 's createdDate has been set. |
boolean |
isSetListOfCreators() |
boolean |
isSetListOfModification() |
boolean |
isSetModifiedDate()
Predicate returning true or false depending on whether this
History 's modifiedDate has been set. |
boolean |
readAttribute(java.lang.String nodeName,
java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
Creator |
removeCreator(int i)
If there is no ith
Creator , it returns null . |
java.util.Date |
removeModifiedDate(int i)
If there is no ith modified
Date , it returns null . |
void |
setCreatedDate(java.util.Date date)
Sets the createdDate.
|
void |
setModifiedDate(java.util.Date date)
Sets the modifiedDate.
|
void |
unsetCreatedDate()
Sets the created of this
History to null . |
void |
unsetListOfModifiedDates()
Sets the created of this
History to null . |
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getParent, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySet
private static final long serialVersionUID
private java.util.Date creation
private java.util.List<Creator> listOfCreators
private java.util.List<java.util.Date> listOfModification
History
.private java.util.Date modified
public History()
History
instance. By default, the creation and modified
are null
. The listOfModification
and
listOfCreators
are empty.public History(History history)
history
- public void addCreator(Creator mc)
mc
- public void addModifiedDate(java.util.Date date)
Date
of modification to this History
.date
- public History clone()
clone
in class AbstractTreeNode
public boolean equals(java.lang.Object object)
equals
in class AbstractTreeNode
public boolean getAllowsChildren()
public javax.swing.tree.TreeNode getChildAt(int childIndex)
public int getChildCount()
public java.util.Date getCreatedDate()
History
.Date
object representing the createdDate from the History
.
Can be null if it is not set.public Creator getCreator(int i)
public java.util.List<Creator> getListOfCreators()
public java.util.List<java.util.Date> getListOfModifiedDates()
History
.History
.public java.util.Date getModifiedDate()
History
.History
.
Can be null if it is not set.public java.util.Date getModifiedDate(int n)
Date
object in the list of ModifiedDates in this
History
.public int getNumModifiedDates()
History
.History
.public int getModifiedDateCount()
History
.History
.public int hashCode()
hashCode
in class AbstractTreeNode
public boolean isEmpty()
History
.true
if at least one of the possible attributes is set, i.e., not
null:
creation
datelistOfCreators
is not null and contains at least one
elementlistOfModification
is not null and contains at least one
element.modified
is not null
.public boolean isSetCreatedDate()
History
's createdDate has been set.true
if the createdDate of this History
has been
set, false
otherwise.public boolean isSetListOfCreators()
public boolean isSetListOfModification()
public boolean isSetModifiedDate()
History
's modifiedDate has been set.true
if the modifiedDate of this History
has been
set, false
otherwise.public boolean readAttribute(java.lang.String nodeName, java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
nodeName
- attributeName
- prefix
- value
- true
if the XML attribute is known by this History
.public Creator removeCreator(int i)
Creator
, it returns null
.i
- Creator
removed from the listOfCreators
.public java.util.Date removeModifiedDate(int i)
Date
, it returns null
.i
- Date
removed from the listOfModification.public void setCreatedDate(java.util.Date date)
date
- a Date
object representing the date the History
was
created.public void setModifiedDate(java.util.Date date)
date
- a Date
object representing the date the History
was
modified.public void unsetCreatedDate()
History
to null
.public void unsetListOfModifiedDates()
History
to null
.