public void setPropertyDefaultType ( Class type , String propertyName , Class defaultType ) { if ( type == null ) throw new IllegalArgumentException ( "type cannot be null." ) ; if ( propertyName == null ) throw new IllegalArgumentException ( "propertyName cannot be null." ) ; if ( defaultType == null ) throw new IllegalArgumentException ( "defaultType cannot be null." ) ; Property property = Beans . getProperty ( type , propertyName , beanProperties , privateFields , this ) ; if ( property == null ) throw new IllegalArgumentException ( "The class " + type . getName ( ) + " does not have a property named: " + propertyName ) ; propertyToDefaultType . put ( property , defaultType ) ; }
Sets the default type of a property . No tag will be output for values of this type . This type will be used if no tag is found .