|
|
|
|
Re: XMLTypeFactoryImpl doesn't support XSD compliant representations of infinity [message #900359 is a reply to message #899759] |
Mon, 06 August 2012 15:36 |
Martin Weiss Messages: 9 Registered: July 2012 |
Junior Member |
|
|
Hi Ed,
Ed Merks wrote on Thu, 02 August 2012 04:44
The four calls to valueOf could be optimized by storing
that value as a static final constant...
great idea, thanks!
I noticed there are more conversion methods in XMLTypeFactory:
String convertFloat(float instanceValue);
String convertDouble(double instanceValue);
String convertFloatObject(Float instanceValue);
String convertDoubleObject(Double instanceValue);
It seems these are never called during loading or saving the model. What are these methods for? Do I have to override them, too?
[Updated on: Mon, 06 August 2012 15:37] Report message to a moderator
|
|
|
Re: XMLTypeFactoryImpl doesn't support XSD compliant representations of infinity [message #900446 is a reply to message #900359] |
Tue, 07 August 2012 07:03 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Martin,
XMLTypeFactory is generated with Data Type Converters set to true, so it
generates a full API for all data types, including the primitives. When
reflection is used, all values are passed around as objects, so
primitives are wrapped. Therefore you won't see these methods used
directly by the framework, only when clients call them directly in their
hand written code.
On 06/08/2012 5:36 PM, Martin Weiss wrote:
> Hi Ed,
>
> Ed Merks wrote on Thu, 02 August 2012 04:44
>> The four calls to valueOf could be optimized by storing that value as
>> a static final constant...
>
>
> great idea, thanks!
>
> I noticed there are more conversion methods in XMLTypeFactory:
>
> String convertFloat(float instanceValue);
> String convertDouble(double instanceValue);
> String convertFloatObject(Float instanceValue);
> String convertDoubleObject(Double instanceValue)
>
> It seems these are never called during loading or saving the model.
> What are these methods for? Do I have to override them, too?
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04518 seconds