public class ManifestParser extends 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)
Constructor for ManifestParser
|
| 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, warningpublic ManifestParser(ManifestParser.IncludedFileReader includedReader, String filename, String defaultBranch, String baseUrl, String groups, Repository rootRepo)
includedReader - a
ManifestParser.IncludedFileReader
object.filename - a String object.defaultBranch - a String object.baseUrl - a String object.groups - a String object.rootRepo - a Repository object.public void read(InputStream inputStream) throws IOException
inputStream - a InputStream object.IOExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic List<RepoProject> getProjects()
@NonNull public List<RepoProject> getFilteredProjects()
Copyright © 2018 Eclipse JGit Project. All rights reserved.