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

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

public class GeneratedNode
extends XMLNode

This class manages saving the state of a generated file collection in XML


Constructor Summary
GeneratedNode(java.io.File xmlFile, java.lang.String reference)
           
 
Method Summary
 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, endDocument, 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

GeneratedNode

public GeneratedNode(java.io.File xmlFile,
                     java.lang.String reference)
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