@Test public void testGetArgumentType_MyEnum() throws Exception { ArgumentType<String> argumentType = ArgumentTypeRegistry .getArgumentType(beanDesc.getPropertyDesc("myEnum")); assertNotNull(argumentType); }
public static <T> ArgumentType<T> getArgumentType(PropertyDesc propertyDesc) { Class<?> propertyType = propertyDesc.getPropertyType(); if (propertyDesc.isParameterized() && Collection.class.isAssignableFrom(propertyType)) { Class<?> elementClass = propertyDesc.getElementClassOfCollection(); return getCollectionArgumentType(propertyType, elementClass); } return getArgumentType(propertyType); }
ArgumentTypeRegistry { public static <T> ArgumentType<T> getArgumentType(PropertyDesc propertyDesc) { Class<?> propertyType = propertyDesc.getPropertyType(); if (propertyDesc.isParameterized() && Collection.class.isAssignableFrom(propertyType)) { Class<?> elementClass = propertyDesc.getElementClassOfCollection(); return getCollectionArgumentType(propertyType, elementClass); } return getArgumentType(propertyType); } }
ArgumentTypeRegistry { public static <T> ArgumentType<T> getArgumentType(PropertyDesc propertyDesc) { Class<?> propertyType = propertyDesc.getPropertyType(); if (propertyDesc.isParameterized() && Collection.class.isAssignableFrom(propertyType)) { Class<?> elementClass = propertyDesc.getElementClassOfCollection(); return getCollectionArgumentType(propertyType, elementClass); } return getArgumentType(propertyType); }  }
ArgumentTypeRegistry { public static <T> ArgumentType<T> getArgumentType(PropertyDesc propertyDesc) { Class<?> propertyType = propertyDesc.getPropertyType(); if (propertyDesc.isParameterized() && Collection.class.isAssignableFrom(propertyType)) { Class<?> elementClass = propertyDesc.getElementClassOfCollection(); return getCollectionArgumentType(propertyType, elementClass); } return getArgumentType(propertyType); }  static ArgumentType<T> getArgumentType(PropertyDesc propertyDesc); static void registerArgumentType(Class<?> clazz,
            Class<? extends ArgumentType<?>> argumentTypeClass); static void deregisterArgumentType(Class<?> clazz); @SuppressWarnings("unchecked") static void registerCollectionArgumentType(
            Class<? extends Collection> collectionClass,
            Class<? extends CollectionType> argumentTypeClass); @SuppressWarnings("unchecked") static void deregisterCollectionArgumentType(
            Class<? extends Collection> collectionClass); }
ArgumentTypeRegistry { public static <T> ArgumentType<T> getArgumentType(PropertyDesc propertyDesc) { Class<?> propertyType = propertyDesc.getPropertyType(); if (propertyDesc.isParameterized() && Collection.class.isAssignableFrom(propertyType)) { Class<?> elementClass = propertyDesc.getElementClassOfCollection(); return getCollectionArgumentType(propertyType, elementClass); } return getArgumentType(propertyType); }  static ArgumentType<T> getArgumentType(PropertyDesc propertyDesc); static void registerArgumentType(Class<?> clazz,
            Class<? extends ArgumentType<?>> argumentTypeClass); static void deregisterArgumentType(Class<?> clazz); @SuppressWarnings("unchecked") static void registerCollectionArgumentType(
            Class<? extends Collection> collectionClass,
            Class<? extends CollectionType> argumentTypeClass); @SuppressWarnings("unchecked") static void deregisterCollectionArgumentType(
            Class<? extends Collection> collectionClass);  }