|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colorado.cs.svn.SvnVersionParser
public class SvnVersionParser
This class implements a subversion revision number parser so it can be dynamically updated in the source code
Field Summary | |
---|---|
private int |
currRevNum
The version number |
Constructor Summary | |
---|---|
SvnVersionParser()
The default constructor parses the Subversion "entries" XML file. |
Method Summary | |
---|---|
float |
getVersionNumber()
Returns the current version number. |
private void |
parseNode(org.w3c.dom.Node node)
Recursive function to parse the internal representation (IR) of the XML document and pick out the highest revision number to set as our version number. |
private void |
parseXML(java.lang.String fileName)
Parse the svn XML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int currRevNum
Constructor Detail |
---|
public SvnVersionParser()
Method Detail |
---|
private void parseNode(org.w3c.dom.Node node)
node
- The XML node to parse.com.sun.org.apache.xerces.internal.impl.xs.dom.DOMParser;
public float getVersionNumber()
private void parseXML(java.lang.String fileName)
fileName
- the name of the svn "entries" file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |