public static ParseMethodType getType(String v) {
		if ("exp".equals(v)) {
			return EXPRESSION_REGEX;
		} else if ("regex".equals(v)) {
			return REGEX;
		} else if ("exp-regex".equals(v)) {
			return EXPRESSION_REGEX;
		} else if ("regex-exp".equals(v)) {
			return REGEX_EXPRESSION;
		} 
		
		throw new java.lang.IllegalArgumentException("unknown type " + v);
	}