net.sf.statsvn.input
public class RepositoriesBuilder extends java.lang.Object
This class receives information from the (@link net.sf.statsvn.input.SvnXmlRepositoriesFileHandler) to build a DOM-based XML structure containing the names of all repositories and associated line counts xml files. It then allows to retrieve the line counts XML file name for a given repository.
Constructor and Description |
---|
RepositoriesBuilder()
Constructs the RepositoriesBuilder
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
buildRepository(java.lang.String uuid,
java.lang.String file)
Adds a repository to the DOM structure.
|
void |
buildRoot()
Builds the DOM root.
|
org.w3c.dom.Document |
getDocument()
Returns the DOM object when building is complete.
|
java.lang.String |
getFileName(java.lang.String uuid)
Retrieves the file name of the line counts xml file for a given repository.
|
public RepositoriesBuilder()
public org.w3c.dom.Element buildRepository(java.lang.String uuid, java.lang.String file)
uuid
- the uuid of the repositoryfile
- the filename for the XML line counts filepublic void buildRoot() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
public java.lang.String getFileName(java.lang.String uuid)
uuid
- the uuid of the repositorypublic org.w3c.dom.Document getDocument()