public class EditHistory extends LexGridBase implements java.io.Serializable
Constructor and Description |
---|
EditHistory() |
Modifier and Type | Method and Description |
---|---|
void |
addRevision(int index,
Revision vRevision) |
void |
addRevision(Revision vRevision) |
java.util.Enumeration<? extends Revision> |
enumerateRevision()
Method enumerateRevision.
|
Revision[] |
getRevision()
Method getRevision.Returns the contents of the collection in
an Array.
|
Revision |
getRevision(int index)
Method getRevision.
|
java.util.List<Revision> |
getRevisionAsReference()
Method getRevisionAsReference.Returns a reference to
'_revisionList'.
|
int |
getRevisionCount()
Method getRevisionCount.
|
boolean |
isValid()
Method isValid.
|
java.util.Iterator<? extends Revision> |
iterateRevision()
Method iterateRevision.
|
void |
marshal(org.xml.sax.ContentHandler handler) |
void |
marshal(java.io.Writer out) |
void |
removeAllRevision() |
boolean |
removeRevision(Revision vRevision)
Method removeRevision.
|
Revision |
removeRevisionAt(int index)
Method removeRevisionAt.
|
void |
setRevision(int index,
Revision vRevision) |
void |
setRevision(java.util.List<Revision> vRevisionList)
Sets the value of '_revisionList' by copying the given
Vector.
|
void |
setRevision(Revision[] vRevisionArray) |
void |
setRevisionAsReference(java.util.List<Revision> revisionList)
Deprecated.
|
static EditHistory |
unmarshalEditHistory(java.io.Reader reader)
Method unmarshalEditHistory.
|
void |
validate() |
getParent, setParent
public void addRevision(Revision vRevision) throws java.lang.IndexOutOfBoundsException
vRevision
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addRevision(int index, Revision vRevision) throws java.lang.IndexOutOfBoundsException
index
- vRevision
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Revision> enumerateRevision()
public Revision getRevision(int index) throws java.lang.IndexOutOfBoundsException
index
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Revision[] getRevision()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public java.util.List<Revision> getRevisionAsReference()
public int getRevisionCount()
public boolean isValid()
public java.util.Iterator<? extends Revision> iterateRevision()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- java.io.IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllRevision()
public boolean removeRevision(Revision vRevision)
vRevision
- public Revision removeRevisionAt(int index)
index
- public void setRevision(int index, Revision vRevision) throws java.lang.IndexOutOfBoundsException
index
- vRevision
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setRevision(Revision[] vRevisionArray)
vRevisionArray
- public void setRevision(java.util.List<Revision> vRevisionList)
vRevisionList
- the Vector to copy.public void setRevisionAsReference(java.util.List<Revision> revisionList)
revisionList
- the Vector to set.public static EditHistory unmarshalEditHistory(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema