test_class.declarator: converter = new EnumValueConverter<TestEnum>(TestEnum.class)
test_class.modifier: private final
test_class.original_string: private final EnumValueConverter<TestEnum> converter = new EnumValueConverter<TestEnum>(TestEnum.class);
test_class.type: EnumValueConverter<TestEnum>
test_class.var_name: converter
test_class.file: stagemonitor-configuration/src/test/java/org/stagemonitor/configuration/converter/EnumValueConverterTest.java
test_class.identifier: EnumValueConverterTest
test_case.body: @Test
  	public void testConvert() throws Exception {
  		assertEquals(TestEnum.TEST_ENUM, converter.convert("TEST_ENUM"));
  		assertEquals(TestEnum.TEST_ENUM, converter.convert("test_enum"));
  		assertEquals(TestEnum.TEST_ENUM, converter.convert("test-enum"));
  	}
test_case.class_method_signature: EnumValueConverterTest.testConvert()
test_case.full_signature: @Test public void testConvert()
test_case.identifier: testConvert
test_case.invocations: assertEquals convert assertEquals convert assertEquals convert
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvert()
focal_class.declarator: enumClass
focal_class.modifier: private final
focal_class.original_string: private final Class<T> enumClass;
focal_class.type: Class<T>
focal_class.var_name: enumClass
focal_class.file: stagemonitor-configuration/src/main/java/org/stagemonitor/configuration/converter/EnumValueConverter.java
focal_class.identifier: EnumValueConverter
focal_class.class_method_signature: EnumValueConverter.EnumValueConverter(Class<T> enumClass)
focal_class.full_signature: public  EnumValueConverter(Class<T> enumClass)
focal_class.identifier: EnumValueConverter
focal_class.modifiers: public
focal_class.parameters: (Class<T> enumClass)
focal_class.signature:  EnumValueConverter(Class<T> enumClass)
focal_class.class_method_signature: EnumValueConverter.convert(String name)
focal_class.full_signature: @Override public T convert(String name)
focal_class.identifier: convert
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: T
focal_class.signature: T convert(String name)
focal_class.class_method_signature: EnumValueConverter.toString(T value)
focal_class.full_signature: @Override public String toString(T value)
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: (T value)
focal_class.return: String
focal_class.signature: String toString(T value)
focal_class.superclass: extends AbstractValueConverter<T>
focal_method.body: @Override
  	public T convert(String name) throws IllegalArgumentException {
  		if (name == null) {
  			throw new IllegalArgumentException("Cant convert 'null' to " + enumClass.getSimpleName());
  		}
  		try {
  			return Enum.valueOf(enumClass, name);
  		} catch (IllegalArgumentException e) {
  			// ignore
  		}
  		try {
  			return Enum.valueOf(enumClass, name.toUpperCase());
  		} catch (IllegalArgumentException e) {
  			// ignore
  		}
  		try {
  			return Enum.valueOf(enumClass, name.toUpperCase().replace("-", "_"));
  		} catch (IllegalArgumentException e) {
  			// ignore
  		}
  		throw new IllegalArgumentException("Can't convert " + name + " to " + enumClass.getSimpleName());
  
  	}
focal_method.class_method_signature: EnumValueConverter.convert(String name)
focal_method.full_signature: @Override public T convert(String name)
focal_method.identifier: convert
focal_method.invocations: getSimpleName valueOf valueOf toUpperCase valueOf replace toUpperCase getSimpleName
focal_method.modifiers: @Override public
focal_method.parameters: (String name)
focal_method.return: T
focal_method.signature: T convert(String name)