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

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

public class DependenceNode
extends XMLNode

DependenceNodes are XMLNodes designed to save the information present in DependentCollection.DFiles to an XML file


Constructor Summary
DependenceNode(DependentCollection col, 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

DependenceNode

public DependenceNode(DependentCollection col,
                      java.io.File xmlFile,
                      java.lang.String reference)
Parameters:
col - is the collection this node will be persisting
xmlFile - is the file it will work with
reference - is a reference to the chain the collection is in
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