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 com.google.common.collect.ImmutableList<String>parseBranches(List<String> branches)static shortparseDefaultValue(LabelType.Builder labelType, short defaultValue)static LabelFunctionparseFunction(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.Builder labelType, short defaultValue) throws BadRequestException
- Throws:
 BadRequestException
 
- 
parseBranches
public static com.google.common.collect.ImmutableList<String> parseBranches(List<String> branches) throws BadRequestException
- Throws:
 BadRequestException
 
 - 
 
 -