|
Hello Castor, I inherited a project that used Castor 9.3.9 to generate class files from a schema; it appears the archive only goes back to version 9.4.2. I was able to find a 9.3.9 jar elsewhere, but no API documentation for this version. Does anyone know where I can the API docs? The dtd changed slightly and I have to regenerate the classes. Unfortunately I am not able to get Castor 9.3.9 or 9.5.2 to generate the same names as before. The earlier class and file names have "Type" appended to them and I need to find out what Castor properties could have been set to produce those names so I can do the same thing. [A whole lot of editing will transpire if I have to change 52 class names throughout 50,000 lines of code!] Using 9.5.2 documentation, I tried the following code and realized 9.3.9 may behave differently -- the Boolean values are reversed in the last two print statements, with the 9.5.2 jar file producing the expected results -- thus my need for 9.3.9 specific documentation. props = srcGen.getDefault(); Object what = props.put("org.exolab.castor.builder.javaclassmapping","type"); if (what == null) { System.out.println("previous value was not set"); } else { System.out.println("previous value was: "+what); } srcGen.setDefaultProperties(props); ... // for debug System.out.println("Mapping Schema To Java"); System.out.println("Element is "+srcGen.mappingSchemaElement2Java()); System.out.println("Type is "+srcGen.mappingSchemaType2Java()); Thank you for your kind assistance! Regards, John Kasalo |
