public class ManifestParser extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Class and Description |
---|---|
static interface |
ManifestParser.IncludedFileReader
A callback to read included xml files.
|
Constructor and Description |
---|
ManifestParser(ManifestParser.IncludedFileReader includedReader,
String filename,
String defaultBranch,
String baseUrl,
String groups,
Repository rootRepo) |
Modifier and Type | Method and Description |
---|---|
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
List<RepoProject> |
getFilteredProjects()
Getter for filterdProjects.
|
List<RepoProject> |
getProjects()
Getter for projects.
|
void |
read(InputStream inputStream)
Read the xml file.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public ManifestParser(ManifestParser.IncludedFileReader includedReader, String filename, String defaultBranch, String baseUrl, String groups, Repository rootRepo)
includedReader
- filename
- defaultBranch
- baseUrl
- groups
- rootRepo
- public void read(InputStream inputStream) throws IOException
inputStream
- IOException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public List<RepoProject> getProjects()
public List<RepoProject> getFilteredProjects()
Copyright © 2016 Eclipse JGit Project. All rights reserved.