geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject svn commit: r178163 - /geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java
Date Tue, 24 May 2005 13:06:26 GMT
Author: gdamour
Date: Tue May 24 06:06:26 2005
New Revision: 178163

URL: http://svn.apache.org/viewcvs?rev=178163&view=rev
Log:
Temporary comment the section of code adding implicit java to XML type
mappings.

Modified:
    geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java?rev=178163&r1=178162&r2=178163&view=diff
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java
Tue May 24 06:06:26 2005
@@ -147,46 +147,47 @@
 
             typeInfoList.add(internalTypeInfo.buildTypeInfo());
         }
-        
-        Map qNameToKey = new HashMap();
-        for (Iterator iter = schemaTypeKeyToSchemaTypeMap.keySet().iterator(); iter.hasNext();)
{
-            SchemaTypeKey key = (SchemaTypeKey) iter.next();
-            qNameToKey.put(key.getqName(), key);
-        }
-        
-        for (Iterator iter = operations.iterator(); iter.hasNext();) {
-            OperationDesc operationDesc = (OperationDesc) iter.next();
-            ArrayList parameters = new ArrayList(operationDesc.getParameters());
-            if (null != operationDesc.getReturnParamDesc().getTypeQName()) {
-                parameters.add(operationDesc.getReturnParamDesc());
-            }
-            for (Iterator iterator = parameters.iterator(); iterator.hasNext();) {
-                ParameterDesc parameterDesc = (ParameterDesc) iterator.next();
-                QName typeQName = parameterDesc.getTypeQName();
-                if (mappedTypeQNames.contains(typeQName)) {
-                    continue;
-                } else if (typeQName.getNamespaceURI().equals(XMLSchema_NS)) {
-                    continue;
-                }
-                
-                SchemaTypeKey key = (SchemaTypeKey) qNameToKey.get(typeQName);
-                if (null == key) {
-                    continue;
-//                    throw new DeploymentException("Type Qname " + typeQName + " defined
by operation " + 
-//                            operationDesc + " has not been found in schema: " + schemaTypeKeyToSchemaTypeMap);
-                }
-                SchemaType schemaType = (SchemaType) schemaTypeKeyToSchemaTypeMap.get(key);
-                mappedTypeQNames.add(key.getqName());
-	            
-                Class clazz = parameterDesc.getJavaType();
-                TypeInfo.UpdatableTypeInfo internalTypeInfo = new TypeInfo.UpdatableTypeInfo();
-                setTypeQName(internalTypeInfo, key);
-                defineSerializerPair(internalTypeInfo, schemaType, clazz);
-                internalTypeInfo.setFields(new FieldDesc[0]);
 
-                typeInfoList.add(internalTypeInfo.buildTypeInfo());
-            }
-        }
+        // TODO: temporary comment the addition of implicit java to xml type mappings.
+//        Map qNameToKey = new HashMap();
+//        for (Iterator iter = schemaTypeKeyToSchemaTypeMap.keySet().iterator(); iter.hasNext();)
{
+//            SchemaTypeKey key = (SchemaTypeKey) iter.next();
+//            qNameToKey.put(key.getqName(), key);
+//        }
+//        
+//        for (Iterator iter = operations.iterator(); iter.hasNext();) {
+//            OperationDesc operationDesc = (OperationDesc) iter.next();
+//            ArrayList parameters = new ArrayList(operationDesc.getParameters());
+//            if (null != operationDesc.getReturnParamDesc().getTypeQName()) {
+//                parameters.add(operationDesc.getReturnParamDesc());
+//            }
+//            for (Iterator iterator = parameters.iterator(); iterator.hasNext();) {
+//                ParameterDesc parameterDesc = (ParameterDesc) iterator.next();
+//                QName typeQName = parameterDesc.getTypeQName();
+//                if (mappedTypeQNames.contains(typeQName)) {
+//                    continue;
+//                } else if (typeQName.getNamespaceURI().equals(XMLSchema_NS)) {
+//                    continue;
+//                }
+//                
+//                SchemaTypeKey key = (SchemaTypeKey) qNameToKey.get(typeQName);
+//                if (null == key) {
+//                    continue;
+////                    throw new DeploymentException("Type Qname " + typeQName + " defined
by operation " + 
+////                            operationDesc + " has not been found in schema: " + schemaTypeKeyToSchemaTypeMap);
+//                }
+//                SchemaType schemaType = (SchemaType) schemaTypeKeyToSchemaTypeMap.get(key);
+//                mappedTypeQNames.add(key.getqName());
+//	            
+//                Class clazz = parameterDesc.getJavaType();
+//                TypeInfo.UpdatableTypeInfo internalTypeInfo = new TypeInfo.UpdatableTypeInfo();
+//                setTypeQName(internalTypeInfo, key);
+//                defineSerializerPair(internalTypeInfo, schemaType, clazz);
+//                internalTypeInfo.setFields(new FieldDesc[0]);
+//
+//                typeInfoList.add(internalTypeInfo.buildTypeInfo());
+//            }
+//        }
 
         return typeInfoList;
     }



Mime
View raw message