[x3d-public] X3DJSAIL errors when compiling Java generated from X3D resourcesJSON examples. Needs work

Don Brutzman brutzman at nps.edu
Thu Jan 26 12:24:14 PST 2017

On 1/26/2017 11:32 AM, yottzumm at gmail.com wrote:
>  [...]
> I am not sure why you are creating a string array out of one element.  I think this is more correct, but you can have it your way if you like:
> ./www_web3d_org/x3d/content/examples/X3dForWebAuthors/Chapter14_Prototypes/WhereAmIExample.java:              FontStyle0_2_15_0_0.setJustify(new String[] {"MIDDLE","MIDDLE"});
> Maybe support both the array (my way) and a X3D MFString (a single String).

You should find that multiple type values are already available for a variety of getter and setter methods, for example String and String array and ArrayList<String> and MFString.  Also for outlier type conversions there are some utility functions in type objects SFString/MFString etc. that complement the rich set of features already available in Java types.




all the best, Don
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

More information about the x3d-public mailing list