uk.ac.ed.inf.ogsaconfig.garm.persistence
Class HistoryNode

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.persistence.XMLNode
        |
        +--uk.ac.ed.inf.ogsaconfig.garm.persistence.HistoryNode
All Implemented Interfaces:
org.xml.sax.ContentHandler

public class HistoryNode
extends XMLNode

HistoryNodes are XMLNodes designed to persist the information present in HistoryCollection.HFiles to an XML file


Constructor Summary
HistoryNode(HistoryCollection col, java.io.File xmlFile, java.lang.String reference)
           
 
Method Summary
 void endDocument()
           
 VFile[] loadedContent()
          subclasses should override this method to return the array of VFile objects they created from the SAX event stream
 void save(VFile[] files)
          subclasses should override this method to write the VFile array given to the xmlFile
 void startElement(java.lang.String ns, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes atts)
           
 
Methods inherited from class uk.ac.ed.inf.ogsaconfig.garm.persistence.XMLNode
characters, endElement, endPrefixMapping, getOutputStream, ignorableWhitespace, load, printVFile, printVFile, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, vFileFromAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryNode

public HistoryNode(HistoryCollection col,
                   java.io.File xmlFile,
                   java.lang.String reference)
Parameters:
col - is the history collection that will be persisted
xmlFile - is the file that it will be persisted with
reference - is a reference to the chain col is part of
Method Detail

save

public void save(VFile[] files)
Description copied from class: XMLNode
subclasses should override this method to write the VFile array given to the xmlFile

Specified by:
save in class XMLNode

loadedContent

public VFile[] loadedContent()
Description copied from class: XMLNode
subclasses should override this method to return the array of VFile objects they created from the SAX event stream

Specified by:
loadedContent in class XMLNode

startElement

public void startElement(java.lang.String ns,
                         java.lang.String name,
                         java.lang.String qname,
                         org.xml.sax.Attributes atts)
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class XMLNode

endDocument

public void endDocument()
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class XMLNode