protected void addTypeConversionConverterLines(NonreflectiveMethodDefinition method, String converterName, TypeConversionConverter converter) { if (converter.getObjectClassName() != null) { // Bug 5170735 - if a conversion object class is an array type, we need to use different notation // retrieve the component type from the converter's ocj String arrayComponentType = Helper.getComponentTypeNameFromArrayString(converter.getObjectClassName()); if (arrayComponentType != null) { method.addLine(converterName + ".setObjectClass(" + arrayComponentType + "[].class);"); } else { method.addLine(converterName + ".setObjectClass(" + converter.getObjectClassName() + ".class);"); } } if (converter.getDataClassName() != null) { // Bug 5170735 - if a conversion data class is an array type, we need to use different notation String arrayComponentType = Helper.getComponentTypeNameFromArrayString(converter.getDataClassName()); if (arrayComponentType != null) { method.addLine(converterName + ".setDataClass(" + arrayComponentType + "[].class);"); } else { method.addLine(converterName + ".setDataClass(" + converter.getDataClassName() + ".class);"); } } }
protected void addTypeConversionConverterLines(NonreflectiveMethodDefinition method, String converterName, TypeConversionConverter converter) { if (converter.getObjectClassName() != null) { // Bug 5170735 - if a conversion object class is an array type, we need to use different notation // retrieve the component type from the converter's ocj String arrayComponentType = Helper.getComponentTypeNameFromArrayString(converter.getObjectClassName()); if (arrayComponentType != null) { method.addLine(converterName + ".setObjectClass(" + arrayComponentType + "[].class);"); } else { method.addLine(converterName + ".setObjectClass(" + converter.getObjectClassName() + ".class);"); } } if (converter.getDataClassName() != null) { // Bug 5170735 - if a conversion data class is an array type, we need to use different notation String arrayComponentType = Helper.getComponentTypeNameFromArrayString(converter.getDataClassName()); if (arrayComponentType != null) { method.addLine(converterName + ".setDataClass(" + arrayComponentType + "[].class);"); } else { method.addLine(converterName + ".setDataClass(" + converter.getDataClassName() + ".class);"); } } }
protected void addTypeConversionConverterLines(NonreflectiveMethodDefinition method, String converterName, TypeConversionConverter converter) { if (converter.getObjectClassName() != null) { // Bug 5170735 - if a conversion object class is an array type, we need to use different notation // retrieve the component type from the converter's ocj String arrayComponentType = Helper.getComponentTypeNameFromArrayString(converter.getObjectClassName()); if (arrayComponentType != null) { method.addLine(converterName + ".setObjectClass(" + arrayComponentType + "[].class);"); } else { method.addLine(converterName + ".setObjectClass(" + converter.getObjectClassName() + ".class);"); } } if (converter.getDataClassName() != null) { // Bug 5170735 - if a conversion data class is an array type, we need to use different notation String arrayComponentType = Helper.getComponentTypeNameFromArrayString(converter.getDataClassName()); if (arrayComponentType != null) { method.addLine(converterName + ".setDataClass(" + arrayComponentType + "[].class);"); } else { method.addLine(converterName + ".setDataClass(" + converter.getDataClassName() + ".class);"); } } }