Class ErrorCodeConfig
java.lang.Object
com.exasol.errorcodecrawlermavenplugin.config.ErrorCodeConfig
This class represents the contents of the error code config file. It is created by
ErrorCodeConfigReader.-
Constructor Summary
ConstructorsConstructorDescriptionErrorCodeConfig(Map<String, SingleErrorCodeConfig> errorTags) Create a new instance ofErrorCodeConfig. -
Method Summary
Modifier and TypeMethodDescriptiongetErrorTagForPackage(String packageName) Get the error tag configured for a specific java package.intgetHighestIndexForErrorTag(String errorTag) Get the highest index of an error code.getPackagesForErrorTag(String errorTag) Get packages for a specific error tag.booleanhasErrorTag(String errorTag) Check if a specific error tag is declared in the configuration file.toString()
-
Constructor Details
-
ErrorCodeConfig
Create a new instance ofErrorCodeConfig.- Parameters:
errorTags- error tag entries
-
-
Method Details
-
getErrorTagForPackage
Get the error tag configured for a specific java package.- Parameters:
packageName- name of the package- Returns:
- corresponding error tag
-
getPackagesForErrorTag
Get packages for a specific error tag.- Parameters:
errorTag- error tag e.g:EXA-TEST- Returns:
- list of packages that can declare this error code
-
hasErrorTag
Check if a specific error tag is declared in the configuration file.- Parameters:
errorTag- error tag to check- Returns:
trueif the tag was declared.
-
getHighestIndexForErrorTag
Get the highest index of an error code.- Parameters:
errorTag- error code- Returns:
- highest index (according to the config file)
-
toString
-