openmicroscopy/bioformats — pull request #574 by rleigh-dundee (2013-06-28 19:07:42+00:00)
Title: xsd-fu: Generalise language type mapping

Rename the following variables, functions and properties:

JAVA_TYPE_MAP → TYPE_MAP
JAVA_PRIMITIVE_TYPE_MAP → PRIMITIVE_TYPE_MAP
JAVA_BASE_TYPE_MAP → BASE_TYPE_MAP
resolveJavaTypeFromSimpleType → resolveLangTypeFromSimpleType
javaMethodName → methodName
javaArgumentName → argumentName
javaType → langType
javaInstanceVariableName → instanceVariableName
javaBase → langBaseType

These changes involve xsd-fu, fu.py and the java templates. There are no changes in the generated code bar a single comment, e.g.:

```
diff -urN components/ome-xml/target/generated-sources/ome/xml/model/AffineTransform.java components/ome-xml/target-new/generated-sources/ome/xml/model/AffineTransform.java
--- components/ome-xml/target/generated-sources/ome/xml/model/AffineTransform.java	2013-06-28 20:02:26.000000000 +0100
+++ components/ome-xml/target-new/generated-sources/ome/xml/model/AffineTransform.java	2013-06-28 20:00:30.000000000 +0100
@@ -61,7 +61,7 @@

public class AffineTransform extends AbstractOMEModelObject
{
-	// Base: -- Name: AffineTransform -- Type: AffineTransform -- javaBase: AbstractOMEModelObject -- javaType: Object
+	// Base: -- Name: AffineTransform -- Type: AffineTransform -- langBaseType: AbstractOMEModelObject -- langType: Object

// -- Constants --

```

This will be followed by a second PR which will add a number of additional properties and simplify some of the templates (again, with no functional generated code changes).