You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jim Alateras <ji...@bigpond.net.au> on 2006/03/10 04:10:26 UTC
[jxpath] BigDecimal maths
Hi,
I was just whether JXPath supports BigDecimal maths without lose of
precision. I suspect that it is not supported in the 1.2 distribution
since all maths operations seem to be done in doubles. If the later is
correct then what would be the best approach to extending JXPath to
support BigDecimal....would the following work
1 extending org.apache.commons.jxpath.ri.compiler.TreeCompiler to create
operations that use BigDecimal instead of double.
2. extending org.apache.commons.jxpath.ri.JXPathContextReferenceImpl to
a. override getCompiler() to return the custom TreeCompiler
b. override getRelativeContext() to return the custom
JXPathContextReferenceImpl
3. extending JXPathContextFactory to return the custom
JXPathContextReferenceImpl
4. configuring JXPathContextFactory to load the custom JXPathContextFactory
cheers
</jima>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org