public class Revision extends Describable implements java.io.Serializable
Constructor and Description |
---|
Revision() |
Modifier and Type | Method and Description |
---|---|
void |
addChangedEntry(ChangedEntry vChangedEntry) |
void |
addChangedEntry(int index,
ChangedEntry vChangedEntry) |
java.util.Enumeration<? extends ChangedEntry> |
enumerateChangedEntry()
Method enumerateChangedEntry.
|
java.lang.String |
getChangeAgent()
Returns the value of field 'changeAgent'.
|
ChangedEntry[] |
getChangedEntry()
Method getChangedEntry.Returns the contents of the
collection in an Array.
|
ChangedEntry |
getChangedEntry(int index)
Method getChangedEntry.
|
java.util.List<ChangedEntry> |
getChangedEntryAsReference()
Method getChangedEntryAsReference.Returns a reference to
'_changedEntryList'.
|
int |
getChangedEntryCount()
Method getChangedEntryCount.
|
Text |
getChangeInstructions()
Returns the value of field 'changeInstructions'.
|
java.lang.Long |
getEditOrder()
Returns the value of field 'editOrder'.
|
java.util.Date |
getRevisionDate()
Returns the value of field 'revisionDate'.
|
java.lang.String |
getRevisionId()
Returns the value of field 'revisionId'.
|
boolean |
isValid()
Method isValid.
|
java.util.Iterator<? extends ChangedEntry> |
iterateChangedEntry()
Method iterateChangedEntry.
|
void |
marshal(org.xml.sax.ContentHandler handler) |
void |
marshal(java.io.Writer out) |
void |
removeAllChangedEntry() |
boolean |
removeChangedEntry(ChangedEntry vChangedEntry)
Method removeChangedEntry.
|
ChangedEntry |
removeChangedEntryAt(int index)
Method removeChangedEntryAt.
|
void |
setChangeAgent(java.lang.String changeAgent)
Sets the value of field 'changeAgent'.
|
void |
setChangedEntry(ChangedEntry[] vChangedEntryArray) |
void |
setChangedEntry(int index,
ChangedEntry vChangedEntry) |
void |
setChangedEntry(java.util.List<ChangedEntry> vChangedEntryList)
Sets the value of '_changedEntryList' by copying the given
Vector.
|
void |
setChangedEntryAsReference(java.util.List<ChangedEntry> changedEntryList)
Deprecated.
|
void |
setChangeInstructions(Text changeInstructions)
Sets the value of field 'changeInstructions'.
|
void |
setEditOrder(java.lang.Long editOrder)
Sets the value of field 'editOrder'.
|
void |
setRevisionDate(java.util.Date revisionDate)
Sets the value of field 'revisionDate'.
|
void |
setRevisionId(java.lang.String revisionId)
Sets the value of field 'revisionId'.
|
static Revision |
unmarshalRevision(java.io.Reader reader)
Method unmarshalRevision.
|
void |
validate() |
getEntityDescription, setEntityDescription, unmarshalDescribable
getParent, setParent
public void addChangedEntry(ChangedEntry vChangedEntry) throws java.lang.IndexOutOfBoundsException
vChangedEntry
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addChangedEntry(int index, ChangedEntry vChangedEntry) throws java.lang.IndexOutOfBoundsException
index
- vChangedEntry
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends ChangedEntry> enumerateChangedEntry()
public java.lang.String getChangeAgent()
public Text getChangeInstructions()
public ChangedEntry getChangedEntry(int index) throws java.lang.IndexOutOfBoundsException
index
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic ChangedEntry[] getChangedEntry()
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<ChangedEntry> getChangedEntryAsReference()
public int getChangedEntryCount()
public java.lang.Long getEditOrder()
public java.util.Date getRevisionDate()
public java.lang.String getRevisionId()
public boolean isValid()
isValid
in class Describable
public java.util.Iterator<? extends ChangedEntry> iterateChangedEntry()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class Describable
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
marshal
in class Describable
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 removeAllChangedEntry()
public boolean removeChangedEntry(ChangedEntry vChangedEntry)
vChangedEntry
- public ChangedEntry removeChangedEntryAt(int index)
index
- public void setChangeAgent(java.lang.String changeAgent)
changeAgent
- the value of field 'changeAgent'.public void setChangeInstructions(Text changeInstructions)
changeInstructions
- the value of field
'changeInstructions'.public void setChangedEntry(int index, ChangedEntry vChangedEntry) throws java.lang.IndexOutOfBoundsException
index
- vChangedEntry
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setChangedEntry(ChangedEntry[] vChangedEntryArray)
vChangedEntryArray
- public void setChangedEntry(java.util.List<ChangedEntry> vChangedEntryList)
vChangedEntryList
- the Vector to copy.public void setChangedEntryAsReference(java.util.List<ChangedEntry> changedEntryList)
changedEntryList
- the Vector to set.public void setEditOrder(java.lang.Long editOrder)
editOrder
- the value of field 'editOrder'.public void setRevisionDate(java.util.Date revisionDate)
revisionDate
- the value of field 'revisionDate'.public void setRevisionId(java.lang.String revisionId)
revisionId
- the value of field 'revisionId'.public static Revision unmarshalRevision(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
validate
in class Describable
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema