public class ModuleFileParser extends Object
config.xml
file into a Module
object.
Typical usage is:
ModuleFileParser
with ModuleFileParser(MessageSourceService)
.
parse(File)
.config.xml
file against the document type definition's (DTD).Constructor and Description |
---|
ModuleFileParser(File moduleFile)
Deprecated.
since 2.2.0 use
ModuleFileParser(MessageSourceService) |
ModuleFileParser(InputStream inputStream)
Deprecated.
since 2.2.0 use
ModuleFileParser(MessageSourceService) |
ModuleFileParser(MessageSourceService messageSourceService)
Creates a ModuleFileParser.
|
Modifier and Type | Method and Description |
---|---|
Module |
parse()
Deprecated.
since 2.2.0 use
parse(File) |
Module |
parse(File moduleFile)
Get the module from an OpenMRS module file.
|
Module |
parse(InputStream inputStream)
Parses the given
InputStream of an OpenMRS module into a Module . |
public ModuleFileParser(MessageSourceService messageSourceService)
messageSourceService
- the message source used for error messages@Deprecated public ModuleFileParser(File moduleFile)
ModuleFileParser(MessageSourceService)
moduleFile
- the module (jar)file that will be parsed@Deprecated public ModuleFileParser(InputStream inputStream)
ModuleFileParser(MessageSourceService)
inputStream
- the inputStream pointing to an omod filepublic Module parse(InputStream inputStream)
InputStream
of an OpenMRS module into a Module
.
This copies the stream into a temporary file and close given InputStream
.inputStream
- the inputStream pointing to an omod file@Deprecated public Module parse() throws ModuleException
parse(File)
ModuleFileParser(File)
or ModuleFileParser(InputStream)
.
Best use ModuleFileParser(MessageSourceService)
and parse(File)
since this method is deprecated.ModuleException
Copyright © 2024 OpenMRS Inc.. All rights reserved.