Package org.mybatis.generator.config.xml
Class ConfigurationParser
java.lang.Object
org.mybatis.generator.config.xml.ConfigurationParser
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationParser(List<String> warnings) ConfigurationParser(Properties extraProperties, List<String> warnings) This constructor accepts a properties object which may be used to specify an additional property set. -
Method Summary
Modifier and TypeMethodDescriptionparseConfiguration(File inputFile) parseConfiguration(InputStream inputStream) parseConfiguration(Reader reader) private ConfigurationparseConfiguration(InputSource inputSource) private ConfigurationparseMyBatisGeneratorConfiguration(Element rootNode)
-
Field Details
-
warnings
-
parseErrors
-
extraProperties
-
-
Constructor Details
-
ConfigurationParser
-
ConfigurationParser
This constructor accepts a properties object which may be used to specify an additional property set. Typically this property set will be Ant or Maven properties specified in the build.xml file or the POM.If there are name collisions between the different property sets, they will be resolved in this order:
- System properties take highest precedence
- Properties specified in the <properties> configuration element are next
- Properties specified in this "extra" property set are lowest precedence.
- Parameters:
extraProperties- an (optional) set of properties used to resolve property references in the configuration filewarnings- any warnings are added to this array
-
-
Method Details
-
parseConfiguration
- Throws:
IOExceptionXMLParserException
-
parseConfiguration
- Throws:
IOExceptionXMLParserException
-
parseConfiguration
public Configuration parseConfiguration(InputStream inputStream) throws IOException, XMLParserException - Throws:
IOExceptionXMLParserException
-
parseConfiguration
private Configuration parseConfiguration(InputSource inputSource) throws IOException, XMLParserException - Throws:
IOExceptionXMLParserException
-
parseMyBatisGeneratorConfiguration
private Configuration parseMyBatisGeneratorConfiguration(Element rootNode) throws XMLParserException - Throws:
XMLParserException
-