aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java')
-rw-r--r--moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java94
1 files changed, 47 insertions, 47 deletions
diff --git a/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java b/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java
index 0a4598a..80b4d4d 100644
--- a/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java
+++ b/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java
@@ -179,25 +179,25 @@ public class MappingsGenerator {
private static final String ATT = "@";
private static final String TXT = "/text()";
private static String OBJECT_CLASS_NAME = "java.lang.Object";
- public static final QName RESERVED_QNAME = new QName("urn:ECLIPSELINK_RESERVEDURI", "RESERVEDNAME");
-
- String outputDir = ".";
- private HashMap<String, QName> userDefinedSchemaTypes;
- private Helper helper;
- private JavaClass jotArrayList;
- private JavaClass jotHashSet;
- private JavaClass jotHashMap;
- private JavaClass jotLinkedList;
- private JavaClass jotTreeSet;
- private HashMap<String, PackageInfo> packageToPackageInfoMappings;
- private HashMap<String, TypeInfo> typeInfo;
- private HashMap<QName, Class> qNamesToGeneratedClasses;
- private HashMap<String, Class> classToGeneratedClasses;
- private HashMap<QName, Class> qNamesToDeclaredClasses;
- private HashMap<QName, ElementDeclaration> globalElements;
- private List<ElementDeclaration> localElements;
- private Map<TypeMappingInfo, Class> typeMappingInfoToGeneratedClasses;
- private Map<MapEntryGeneratedKey, Class> generatedMapEntryClasses;
+ public static final QName RESERVED_QNAME = new QName("urn:ECLIPSELINK_RESERVEDURI", "RESERVEDNAME");
+
+ String outputDir = ".";
+ private Map<String, QName> userDefinedSchemaTypes;
+ private Helper helper;
+ private JavaClass jotArrayList;
+ private JavaClass jotHashSet;
+ private JavaClass jotHashMap;
+ private JavaClass jotLinkedList;
+ private JavaClass jotTreeSet;
+ private Map<String, PackageInfo> packageToPackageInfoMappings;
+ private Map<String, TypeInfo> typeInfo;
+ private Map<QName, Class> qNamesToGeneratedClasses;
+ private Map<String, Class> classToGeneratedClasses;
+ private Map<QName, Class> qNamesToDeclaredClasses;
+ private Map<QName, ElementDeclaration> globalElements;
+ private List<ElementDeclaration> localElements;
+ private Map<TypeMappingInfo, Class> typeMappingInfoToGeneratedClasses;
+ private Map<MapEntryGeneratedKey, Class> generatedMapEntryClasses;
private CoreProject project;
private NamespaceResolver globalNamespaceResolver;
private boolean isDefaultNamespaceAllowed;
@@ -214,13 +214,13 @@ public class MappingsGenerator {
qNamesToDeclaredClasses = new HashMap<QName, Class>();
classToGeneratedClasses = new HashMap<String, Class>();
globalNamespaceResolver = new org.eclipse.persistence.oxm.NamespaceResolver();
- isDefaultNamespaceAllowed = true;
- }
-
- public CoreProject generateProject(ArrayList<JavaClass> typeInfoClasses, HashMap<String, TypeInfo> typeInfo, HashMap<String, QName> userDefinedSchemaTypes, HashMap<String, PackageInfo> packageToPackageInfoMappings, HashMap<QName, ElementDeclaration> globalElements, List<ElementDeclaration> localElements, Map<TypeMappingInfo, Class> typeMappingInfoToGeneratedClass, Map<TypeMappingInfo, Class> typeMappingInfoToAdapterClasses, boolean isDefaultNamespaceAllowed) throws Exception {
- this.typeInfo = typeInfo;
- this.userDefinedSchemaTypes = userDefinedSchemaTypes;
- this.packageToPackageInfoMappings = packageToPackageInfoMappings;
+ isDefaultNamespaceAllowed = true;
+ }
+
+ public CoreProject generateProject(List<JavaClass> typeInfoClasses, Map<String, TypeInfo> typeInfo, Map<String, QName> userDefinedSchemaTypes, Map<String, PackageInfo> packageToPackageInfoMappings, Map<QName, ElementDeclaration> globalElements, List<ElementDeclaration> localElements, Map<TypeMappingInfo, Class> typeMappingInfoToGeneratedClass, Map<TypeMappingInfo, Class> typeMappingInfoToAdapterClasses, boolean isDefaultNamespaceAllowed) throws Exception {
+ this.typeInfo = typeInfo;
+ this.userDefinedSchemaTypes = userDefinedSchemaTypes;
+ this.packageToPackageInfoMappings = packageToPackageInfoMappings;
this.isDefaultNamespaceAllowed = isDefaultNamespaceAllowed;
this.globalElements = globalElements;
this.localElements = localElements;
@@ -1915,13 +1915,13 @@ public class MappingsGenerator {
/**
* Compares a JavaModel JavaClass to a Class. Equality is based on
* the raw name of the JavaClass compared to the canonical
- * name of the Class.
- *
- * @param src
- * @param tgt
- * @return
- */
- protected boolean areEquals(JavaClass src, String tgtCanonicalName) {
+ * name of the Class.
+ *
+ * @param src
+ * @param tgtCanonicalName
+ * @return
+ */
+ protected boolean areEquals(JavaClass src, String tgtCanonicalName) {
if (src == null || tgtCanonicalName == null) {
return false;
}
@@ -3230,20 +3230,20 @@ public class MappingsGenerator {
//byte[] classBytes = new byte[]{};
Class generatedClass = getJaxbClassLoader().generateClass(className, classBytes);
- return generatedClass;
- }
-
- public HashMap<QName, Class> getQNamesToGeneratedClasses() {
- return qNamesToGeneratedClasses;
- }
-
- public HashMap<String, Class> getClassToGeneratedClasses() {
- return classToGeneratedClasses;
- }
- public HashMap<QName, Class> getQNamesToDeclaredClasses() {
- return qNamesToDeclaredClasses;
- }
-
+ return generatedClass;
+ }
+
+ public Map<QName, Class> getQNamesToGeneratedClasses() {
+ return qNamesToGeneratedClasses;
+ }
+
+ public Map<String, Class> getClassToGeneratedClasses() {
+ return classToGeneratedClasses;
+ }
+ public Map<QName, Class> getQNamesToDeclaredClasses() {
+ return qNamesToDeclaredClasses;
+ }
+
private Map<MapEntryGeneratedKey, Class> getGeneratedMapEntryClasses() {
if(generatedMapEntryClasses == null){
generatedMapEntryClasses = new HashMap<MapEntryGeneratedKey, Class>();