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

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

public class LayoutNode
extends XMLNode

LayoutNodes are XMLNodes designed to persist the information contained in the VFiles in LayoutCollections


Constructor Summary
LayoutNode(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

LayoutNode

public LayoutNode(java.io.File xmlFile,
                  java.lang.String reference)
Parameters:
xmlFile - is the file to work with
reference - is a reference to the chain this collections 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