Class Validator
java.lang.Object
org.jreleaser.model.internal.validation.common.Validator
- Since:
- 0.1.0
- Author:
- Andres Almiray
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckProperty(JReleaserContext context, String key, String property, Boolean value, boolean defaultValue) static IntegercheckProperty(JReleaserContext context, String key, String property, Integer value, org.jreleaser.util.Errors errors, boolean dryrun) static StringcheckProperty(JReleaserContext context, String key, String property, String value, String defaultValue) static StringcheckProperty(JReleaserContext context, String key, String property, String value, org.jreleaser.util.Errors errors) static StringcheckProperty(JReleaserContext context, String key, String property, String value, org.jreleaser.util.Errors errors, boolean dryrun) checkProperty(JReleaserContext context, String key, String property, T value, T defaultValue) static booleancheckProperty(JReleaserContext context, Collection<String> keys, String property, Boolean value, boolean defaultValue) static IntegercheckProperty(JReleaserContext context, Collection<String> keys, String property, Integer value, org.jreleaser.util.Errors errors, boolean dryrun) static StringcheckProperty(JReleaserContext context, Collection<String> keys, String property, String value, String defaultValue) static StringcheckProperty(JReleaserContext context, Collection<String> keys, String property, String value, org.jreleaser.util.Errors errors) static StringcheckProperty(JReleaserContext context, Collection<String> keys, String property, String value, org.jreleaser.util.Errors errors, boolean dryrun) checkProperty(JReleaserContext context, Collection<String> keys, String property, T value, T defaultValue) static voidresolveActivatable(JReleaserContext context, Activatable activatable, String key, String defaultValue) static voidresolveActivatable(JReleaserContext context, Activatable activatable, String key, Activatable parentActivatable) static voidresolveActivatable(JReleaserContext context, Activatable activatable, List<String> keys, String defaultValue) static voidvalidateCommitAuthor(CommitAuthorAware self, CommitAuthorAware other) static voidvalidateContinueOnError(Packager<?> self, Packager<?> other) static voidvalidateFileSet(JReleaserContext context, org.jreleaser.model.api.JReleaserContext.Mode mode, Assembler<?> assembler, FileSet fileSet, int index, org.jreleaser.util.Errors errors) static voidvalidateGlobs(JReleaserContext context, Collection<Glob> globs, String property, org.jreleaser.util.Errors errors) static voidvalidateIcons(List<Icon> icons, org.jreleaser.util.Errors errors, String base) static voidvalidateIcons(List<Icon> icons, org.jreleaser.util.Errors errors, String base, boolean validatePrimary) static voidvalidateOwner(OwnerAware self, OwnerAware other) static voidvalidateRepository(JReleaserContext context, Distribution distribution, RepositoryTap repository, RepositoryTap parentTap, String property) static voidvalidateRepository(JReleaserContext context, Distribution distribution, RepositoryTap repository, RepositoryTap parentRepository, String property, String activeDefaultValue) static voidvalidateScreenshots(List<Screenshot> screenshots, org.jreleaser.util.Errors errors, String base) static voidvalidateTimeout(TimeoutAware self)
-
Method Details
-
checkProperty
public static String checkProperty(JReleaserContext context, String key, String property, String value, org.jreleaser.util.Errors errors) -
checkProperty
public static String checkProperty(JReleaserContext context, String key, String property, String value, org.jreleaser.util.Errors errors, boolean dryrun) -
checkProperty
public static Integer checkProperty(JReleaserContext context, String key, String property, Integer value, org.jreleaser.util.Errors errors, boolean dryrun) -
checkProperty
-
checkProperty
public static boolean checkProperty(JReleaserContext context, String key, String property, Boolean value, boolean defaultValue) -
checkProperty
public static <T extends Enum<T>> String checkProperty(JReleaserContext context, String key, String property, T value, T defaultValue) -
checkProperty
public static String checkProperty(JReleaserContext context, Collection<String> keys, String property, String value, org.jreleaser.util.Errors errors) -
checkProperty
public static String checkProperty(JReleaserContext context, Collection<String> keys, String property, String value, org.jreleaser.util.Errors errors, boolean dryrun) -
checkProperty
public static Integer checkProperty(JReleaserContext context, Collection<String> keys, String property, Integer value, org.jreleaser.util.Errors errors, boolean dryrun) -
checkProperty
public static String checkProperty(JReleaserContext context, Collection<String> keys, String property, String value, String defaultValue) -
checkProperty
public static boolean checkProperty(JReleaserContext context, Collection<String> keys, String property, Boolean value, boolean defaultValue) -
checkProperty
public static <T extends Enum<T>> String checkProperty(JReleaserContext context, Collection<String> keys, String property, T value, T defaultValue) -
validateOwner
-
validateContinueOnError
-
validateCommitAuthor
-
validateTimeout
-
validateRepository
public static void validateRepository(JReleaserContext context, Distribution distribution, RepositoryTap repository, RepositoryTap parentTap, String property) -
validateRepository
public static void validateRepository(JReleaserContext context, Distribution distribution, RepositoryTap repository, RepositoryTap parentRepository, String property, String activeDefaultValue) -
validateGlobs
public static void validateGlobs(JReleaserContext context, Collection<Glob> globs, String property, org.jreleaser.util.Errors errors) -
validateFileSet
public static void validateFileSet(JReleaserContext context, org.jreleaser.model.api.JReleaserContext.Mode mode, Assembler<?> assembler, FileSet fileSet, int index, org.jreleaser.util.Errors errors) -
validateScreenshots
public static void validateScreenshots(List<Screenshot> screenshots, org.jreleaser.util.Errors errors, String base) -
validateIcons
-
validateIcons
-
resolveActivatable
public static void resolveActivatable(JReleaserContext context, Activatable activatable, String key, Activatable parentActivatable) -
resolveActivatable
public static void resolveActivatable(JReleaserContext context, Activatable activatable, String key, String defaultValue) -
resolveActivatable
public static void resolveActivatable(JReleaserContext context, Activatable activatable, List<String> keys, String defaultValue)
-