|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--vc.xml.sax.SaxDataExtractor
SaxDataExtractor is the Template Method (pattern) class of XML subsystem which standardizes the message flow for extraction of SAx data related to the project and version databases. The derived classes of this implements the abstract methods of this class.
Field Summary | |
protected java.util.Stack |
directoryStack
Stack to keep track of the recent directory so that the file and other elements can be related to the directory to which they belong to |
protected File |
file
Holds the file objects temporarily, until they are added to the database |
protected Directory |
newDirectory
Holds the directory objects temporarily, until they are added to the database |
ProjectDB |
projectDB
project database object which stores even the version related data |
Constructor Summary | |
SaxDataExtractor()
|
Method Summary | |
protected void |
processDataBaseElement(org.xml.sax.Attributes attrs)
Event handler or the data extraction method for the Database element. |
protected void |
processDirectoryElement(org.xml.sax.Attributes attrs)
Event handler or the data extraction method for the Directory element. |
protected void |
processDiskMapElement(org.xml.sax.Attributes attrs)
Event handler or the data extraction method for the diskmap element. |
void |
processElement(java.lang.String elementName,
org.xml.sax.Attributes attrs)
SAX event handler invoked when ever a new Element is processed. |
protected void |
processFileElement(org.xml.sax.Attributes attrs)
Event handler or the data extraction method for the File element. |
protected void |
processLabelVersionMapElement(org.xml.sax.Attributes attrs)
Event handler or the data extraction method for the LabelVersionMap element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Stack directoryStack
protected Directory newDirectory
protected File file
public ProjectDB projectDB
Constructor Detail |
public SaxDataExtractor()
Method Detail |
public void processElement(java.lang.String elementName, org.xml.sax.Attributes attrs)
elementName
- name of the Element parsed in the XML contentattrs
- Attributes object passed by the XML SAX parser with the
attribute data/values packed into it.protected void processDirectoryElement(org.xml.sax.Attributes attrs)
attrs
- Attributes object passed by the XML SAX parser with the
attribute data/values packed into it.protected void processDiskMapElement(org.xml.sax.Attributes attrs)
attrs
- Attributes object passed by the XML SAX parser with the
attribute data/values packed into it.protected void processFileElement(org.xml.sax.Attributes attrs)
attrs
- Attributes object passed by the XML SAX parser with the
attribute data/values packed into it.protected void processDataBaseElement(org.xml.sax.Attributes attrs)
attrs
- Attributes object passed by the XML SAX parser with the
attribute data/values packed into it.protected void processLabelVersionMapElement(org.xml.sax.Attributes attrs)
attrs
- Attributes object passed by the XML SAX parser with the
attribute data/values packed into it.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |