Package org.jreleaser.config
Class AbstractJReleaserConfigParser
java.lang.Object
org.jreleaser.config.AbstractJReleaserConfigParser
- All Implemented Interfaces:
JReleaserConfigParser
Base implementation of the
JReleaserConfigParser interface.- Since:
- 1.5.0
- Author:
- Andres Almiray
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the preferred file extension supported by this parser.booleanWhether the given resource format is supported or not.booleanWhether the given config file format is supported or not.voidChecks the contents of the config file for syntax compliance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jreleaser.config.JReleaserConfigParser
load, parse, properties
-
Constructor Details
-
AbstractJReleaserConfigParser
-
-
Method Details
-
getPreferredFileExtension
Description copied from interface:JReleaserConfigParserReturns the preferred file extension supported by this parser.- Specified by:
getPreferredFileExtensionin interfaceJReleaserConfigParser- Returns:
- the preferred file extension supported by this parser, should never return
null.
-
supports
Description copied from interface:JReleaserConfigParserWhether the given config file format is supported or not. Implementors would typically look at the file extension.- Specified by:
supportsin interfaceJReleaserConfigParser- Parameters:
configFile- the configuration file to inspect- Returns:
trueif the given format is supported,falseotherwise.
-
supports
Description copied from interface:JReleaserConfigParserWhether the given resource format is supported or not. Implementors would typically look at the file extension.- Specified by:
supportsin interfaceJReleaserConfigParser- Parameters:
resource- the resource to inspect- Returns:
trueif the given format is supported,falseotherwise.
-
validate
Description copied from interface:JReleaserConfigParserChecks the contents of the config file for syntax compliance.- Specified by:
validatein interfaceJReleaserConfigParser- Parameters:
configFile- the configuration file to inspect- Throws:
IOException
-