Class LabelDefinitionInputParser
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.LabelDefinitionInputParser
-
public class LabelDefinitionInputParser extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
parseBranches(List<String> branches)
static short
parseDefaultValue(LabelType labelType, short defaultValue)
static LabelFunction
parseFunction(String functionString)
static List<LabelValue>
parseValues(Map<String,String> values)
-
-
-
Method Detail
-
parseFunction
public static LabelFunction parseFunction(String functionString) throws BadRequestException
- Throws:
BadRequestException
-
parseValues
public static List<LabelValue> parseValues(Map<String,String> values) throws BadRequestException
- Throws:
BadRequestException
-
parseDefaultValue
public static short parseDefaultValue(LabelType labelType, short defaultValue) throws BadRequestException
- Throws:
BadRequestException
-
parseBranches
public static List<String> parseBranches(List<String> branches) throws BadRequestException
- Throws:
BadRequestException
-
-