@Test public void testNoMatchWithDefault() { ClassBasedTypeMapping impl = new ClassBasedTypeMapping("default"); assertEquals(impl.getTypeName(metaData.getPropertyMetaData("first")), "default"); }
@Override public String getTypeName(PropertyMetaData propertyMetaData) { Class<?> propertyType = propertyMetaData.getPropertyDescriptor().getPropertyType(); return getTypeName(propertyType); }
ClassBasedTypeMapping implements TypeMapping { @Override public String getTypeName(PropertyMetaData propertyMetaData) { Class<?> propertyType = propertyMetaData.getPropertyDescriptor().getPropertyType(); return getTypeName(propertyType); } }
ClassBasedTypeMapping implements TypeMapping { @Override public String getTypeName(PropertyMetaData propertyMetaData) { Class<?> propertyType = propertyMetaData.getPropertyDescriptor().getPropertyType(); return getTypeName(propertyType); } ClassBasedTypeMapping();  ClassBasedTypeMapping(String defaultType); }
ClassBasedTypeMapping implements TypeMapping { @Override public String getTypeName(PropertyMetaData propertyMetaData) { Class<?> propertyType = propertyMetaData.getPropertyDescriptor().getPropertyType(); return getTypeName(propertyType); } ClassBasedTypeMapping();  ClassBasedTypeMapping(String defaultType); @Override String getTypeName(PropertyMetaData propertyMetaData); String getTypeName(Class<?> propertyType); void addTypeOverride(Class<?> propertyType, String type); void setTypeOverrides(Map<Class, String> typeOverrides); }
ClassBasedTypeMapping implements TypeMapping { @Override public String getTypeName(PropertyMetaData propertyMetaData) { Class<?> propertyType = propertyMetaData.getPropertyDescriptor().getPropertyType(); return getTypeName(propertyType); } ClassBasedTypeMapping();  ClassBasedTypeMapping(String defaultType); @Override String getTypeName(PropertyMetaData propertyMetaData); String getTypeName(Class<?> propertyType); void addTypeOverride(Class<?> propertyType, String type); void setTypeOverrides(Map<Class, String> typeOverrides);  }