1 16 17 18 package org.apache.commons.betwixt.strategy; 19 20 import org.apache.commons.betwixt.IntrospectionConfiguration; 21 22 28 public class StandardSimpleTypeMapper extends SimpleTypeMapper { 29 30 33 public Binding bind(String propertyName, Class propertyType, IntrospectionConfiguration configuration) { 34 if ( configuration.isAttributesForPrimitives() ) { 35 36 return StandardSimpleTypeMapper.Binding.ATTRIBUTE; 37 38 } else { 39 40 return StandardSimpleTypeMapper.Binding.ELEMENT; 41 42 } 43 } 44 45 46 47 } 48 | Popular Tags |