Menu

class Character

sthed
2011-08-18
2013-04-11
  • sthed

    sthed - 2011-08-18

    Hello,

    I would like to know how to define a Character in Jice :

    <Etat class="java.lang.Character"></Etat>

    Thank you

     
  • Anonymous

    Anonymous - 2011-08-27

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB