private void setValue ( Object newValue ) { try { if ( this . type == null ) value = newValue ; else if ( this . type . equals ( "java.lang.String" ) ) value = newValue ; else if ( this . type . equals ( "java.lang.Boolean" ) ) value = Boolean . valueOf ( ( String ) newValue ) ; else if ( this . type . equals ( "java.lang.Integer" ) ) value = new Integer ( ( ( String ) newValue ) ) ; else if ( this . type . equals ( "java.lang.Double" ) ) value = new Double ( ( ( String ) newValue ) ) ; else if ( this . type . equals ( "java.lang.Byte" ) ) value = new Byte ( ( ( String ) newValue ) ) ; else if ( this . type . equals ( "java.lang.Short" ) ) value = new Short ( ( ( String ) newValue ) ) ; else if ( this . type . equals ( "java.lang.Long" ) ) value = new Long ( ( ( String ) newValue ) ) ; else if ( this . type . equals ( "java.lang.Float" ) ) value = new Float ( ( ( String ) newValue ) ) ; else if ( this . type . equals ( "java.lang.Character" ) ) value = Character . valueOf ( ( ( String ) newValue ) . charAt ( 0 ) ) ; else value = newValue ; } catch ( NumberFormatException nfe ) { Tr . warning ( tc , "INCOMPATIBLE_PROPERTY_TYPE_J2CA0207" , new Object [ ] { name , type , newValue } ) ; } }
should be identical to version 1 . 3 except newValue is of type Object .