java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.Vector
org.mitre.cvw.util.XmlHistory
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.lang.Iterable, java.util.List, java.util.RandomAccess, java.io.Serializable
- public class XmlHistory
- extends java.util.Vector
Represents the history of a docservlet file saved as a vector.
- Version:
- 1.0
|
Nested Class Summary |
(package private) class |
XmlHistory.HistoryRecord
Stores information on a particular revision
element 1: name
element 2: date/time
element 3: comments |
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
history
private boolean history
username
private java.lang.String username
datetime
private java.lang.String datetime
comments
private java.lang.String comments
prolog
private static final java.lang.String prolog
- See Also:
- Constant Field Values
XmlHistory
public XmlHistory(int initialCapacity)
XmlHistory
public XmlHistory()
load
public void load(java.io.InputStream in)
throws java.io.IOException
- Reads an XML formatted history document from an input stream.
add
public void add(java.lang.String name,
java.lang.String datetime,
java.lang.String comment)
startDocument
public void startDocument()
throws java.io.IOException
endDocument
public void endDocument()
throws java.io.IOException
startElement
public void startElement(StartElementEvent event)
throws java.io.IOException
characterData
public void characterData(CharacterDataEvent event)
throws java.io.IOException
endElement
public void endElement(EndElementEvent event)
throws java.io.IOException
processingInstruction
public void processingInstruction(ProcessingInstructionEvent pi)
throws java.io.IOException
endProlog
public void endProlog(EndPrologEvent event)
throws java.io.IOException
comment
public void comment(CommentEvent event)
throws java.io.IOException
startCdataSection
public void startCdataSection(StartCdataSectionEvent event)
throws java.io.IOException
endCdataSection
public void endCdataSection(EndCdataSectionEvent event)
throws java.io.IOException
startEntityReference
public void startEntityReference(StartEntityReferenceEvent event)
throws java.io.IOException
endEntityReference
public void endEntityReference(EndEntityReferenceEvent event)
throws java.io.IOException
startDocumentTypeDeclaration
public void startDocumentTypeDeclaration(StartDocumentTypeDeclarationEvent event)
throws java.io.IOException
endDocumentTypeDeclaration
public void endDocumentTypeDeclaration(EndDocumentTypeDeclarationEvent event)
throws java.io.IOException
markupDeclaration
public void markupDeclaration(MarkupDeclarationEvent event)
throws java.io.IOException
store
public void store(java.io.OutputStream out,
java.lang.String title)
throws java.io.IOException
- Writes the values stored within this class to an output stream