PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/db-migrate/src/main/java/com/googlecode/hdbc/dbmigrate/validator/TopLevelMenuResponseValidator.java

http://hdbc.googlecode.com/
Java | 13 lines | 8 code | 5 blank | 0 comment | 2 complexity | a31b4fcf9f0314b1f4a6b608d8ca5db5 MD5 | raw file
 1package com.googlecode.hdbc.dbmigrate.validator;
 2
 3import java.util.EnumMap;
 4
 5import com.googlecode.hdbc.dbmigrate.Key;
 6
 7public class TopLevelMenuResponseValidator implements IInputValidator {
 8
 9    public final boolean validate(final String response, final EnumMap<Key, String> params) {
10        return "1".equals(response) || "2".equals(response) || "3".equals(response);
11    }
12
13}