@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class ValidationUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
validateEnum(org.kohsuke.stapler.StaplerRequest req,
String formField,
Class<? extends Enum> enumClass) |
static void |
validateInList(org.kohsuke.stapler.StaplerRequest req,
String formField,
List<String> possibleValues) |
static void |
validatePattern(org.kohsuke.stapler.StaplerRequest req,
String formField,
Pattern pattern) |
static void |
validateRange(org.kohsuke.stapler.StaplerRequest req,
String formField,
int min,
int max) |
public static void validateEnum(org.kohsuke.stapler.StaplerRequest req, String formField, Class<? extends Enum> enumClass) throws hudson.model.Descriptor.FormException
hudson.model.Descriptor.FormException
public static void validateInList(org.kohsuke.stapler.StaplerRequest req, String formField, List<String> possibleValues) throws hudson.model.Descriptor.FormException
hudson.model.Descriptor.FormException
public static void validatePattern(org.kohsuke.stapler.StaplerRequest req, String formField, Pattern pattern) throws hudson.model.Descriptor.FormException
hudson.model.Descriptor.FormException
public static void validateRange(org.kohsuke.stapler.StaplerRequest req, String formField, int min, int max) throws hudson.model.Descriptor.FormException
hudson.model.Descriptor.FormException
Copyright © 2016–2023. All rights reserved.