java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.eclipse.jgit.gitrepo.ManifestParser
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Repo XML manifest parser.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
A callback to read included xml files. -
Constructor Summary
ConstructorsConstructorDescriptionManifestParser
(ManifestParser.IncludedFileReader includedReader, String filename, String defaultBranch, String baseUrl, String groups, Repository rootRepo) Constructor for ManifestParser -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endElement
(String uri, String localName, String qName) Getter for filterdProjects.Getter for projects.void
read
(InputStream inputStream) Read the xml file.void
startElement
(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ManifestParser
public ManifestParser(ManifestParser.IncludedFileReader includedReader, String filename, String defaultBranch, String baseUrl, String groups, Repository rootRepo) Constructor for ManifestParser- Parameters:
includedReader
- aManifestParser.IncludedFileReader
object.filename
- aString
object.defaultBranch
- aString
object.baseUrl
- aString
object.groups
- aString
object.rootRepo
- aRepository
object.
-
-
Method Details
-
read
Read the xml file.- Parameters:
inputStream
- aInputStream
object.- Throws:
IOException
- if an IO error occurred
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
getProjects
Getter for projects.- Returns:
- projects list reference, never null
-
getFilteredProjects
Getter for filterdProjects.- Returns:
- filtered projects list reference, never null
-