|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mayo.edu.lgModel.LexGridBase
org.LexGrid.REST.versions.EditHistory
public class EditHistory
An ordered collection of revisions
Constructor Summary | |
---|---|
EditHistory()
|
Method Summary | |
---|---|
void |
addRevision(int index,
Revision vRevision)
|
void |
addRevision(Revision vRevision)
|
java.util.Enumeration<? extends Revision> |
enumerateRevision()
Method enumerateRevision. |
Continuation |
getContinuation()
Returns the value of field 'continuation'. |
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 |
setContinuation(Continuation continuation)
Sets the value of field 'continuation'. |
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()
|
Methods inherited from class org.mayo.edu.lgModel.LexGridBase |
---|
getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditHistory()
Method Detail |
---|
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 Continuation getContinuation()
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 marshaling
org.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
marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
org.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 setContinuation(Continuation continuation)
continuation
- the value of field 'continuation'.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 marshaling
org.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
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |