the code snippet above actually creates a String. extracts the first character in it (as primitive char) and converts it into a Character-instance. the variable "cdata" refers to the contents of the Etat-element.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I would like to know how to define a Character in Jice :
<Etat class="java.lang.Character"></Etat>
Thank you
Hi,
I didn't implement a good support for creating Characters, maybe because they are rarely used.
However, you should be able to create a Character-instance with a line like:
<Etat class="java.lang.Character" instance="cdata.charAt(0)">a</Etat>
the code snippet above actually creates a String. extracts the first character in it (as primitive char) and converts it into a Character-instance. the variable "cdata" refers to the contents of the Etat-element.