uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: BigDecimal as CAS type
Date Thu, 11 Nov 2010 15:14:20 GMT
If your additions are in the project where you're running JCasGen, it will
*merge* updates to the type structures with your additions, preserving them :-)

-Marshall

On 11/10/2010 3:44 PM, Frank Schilder wrote:
>  
>>> The easiest work-around would be to put a string representation
>>> in the CAS.  Just use the BigDecimal.toString() method to encode,
>>> and the BigDecimal(String) constructor to decode.  I know it's
>>> ugly.  If you hide this conversion behind some accessor methods
>>> for your money annotation, you can later change this implementation
>>> for something better.
>> If you use the JCas approach, you can put the "hiding" conversions into some
>> customized methods in the JCas cover type.
>>
>> -Marshall
> I think that should work. I just need to be careful when I jcasgen the type
> system.
>
> Thanks,
> Frank 
>
>
>
>  
>
>
>

Mime
View raw message