Class LabelDefinitionInputParser
- java.lang.Object
- 
- com.google.gerrit.server.restapi.project.LabelDefinitionInputParser
 
- 
 public class LabelDefinitionInputParser extends Object 
- 
- 
Method SummaryAll 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- 
parseFunctionpublic static LabelFunction parseFunction(String functionString) throws BadRequestException - Throws:
- BadRequestException
 
 - 
parseValuespublic static List<LabelValue> parseValues(Map<String,String> values) throws BadRequestException - Throws:
- BadRequestException
 
 - 
parseDefaultValuepublic static short parseDefaultValue(LabelType.Builder labelType, short defaultValue) throws BadRequestException - Throws:
- BadRequestException
 
 - 
parseBranchespublic static com.google.common.collect.ImmutableList<String> parseBranches(List<String> branches) throws BadRequestException - Throws:
- BadRequestException
 
 
- 
 
-