Class ChangelogValidator
- java.lang.Object
-
- org.gcube.informationsystem.utils.ChangelogValidator
-
public final class ChangelogValidator extends Object
Validates theversionandchangelogpair shared by Type definitions and Query Templates:versionis a validVersion,changelogis not empty, every entry has a valid version and a non-empty description, andversionequals the highest entry.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidvalidate(String version, Map<String,String> changelog)Validates a version and its changelog.
-
-
-
Method Detail
-
validate
public static void validate(String version, Map<String,String> changelog)
Validates a version and its changelog.- Parameters:
version- the version, in the form major.minor.patchchangelog- the changelog, mapping each version to the description of its change- Throws:
IllegalArgumentException- if the pair violates any of the rules
-
-