The transpiler is created all we need for Marshalling and Unmarshalling.
The only problem is BigInteger. JAXB is using that for www3 types integer
and positiveInteger.

It looks to me like Jalview is just using those to encode standard int
values. So I don't know why, but OK, that's the way it is, so we need to
implement that. I think in JavaScript we could get away with simple Integer
here. It, like BigInteger, has .intValue() and .valueOf(int).

Thus, a first pass could just be setting an equivalence

java.math.BigInteger = Integer.

at least for these purposes. This is really easy -- we just add that to the
.j2s j2s.class.replacements list.

Then the code to actually do these tasks should be quite trivial.

Bob


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
_______________________________________________
Jalview-dev mailing list
[email protected]
http://www.compbio.dundee.ac.uk/mailman/listinfo/jalview-dev

Reply via email to