You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ds...@apache.org on 2009/04/08 12:23:41 UTC
svn commit: r763170 -
/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java
Author: dsosnoski
Date: Wed Apr 8 10:23:41 2009
New Revision: 763170
URL: http://svn.apache.org/viewvc?rev=763170&view=rev
Log:
Add support for precompiled bindings
Modified:
webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java
Modified: webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java?rev=763170&r1=763169&r2=763170&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java (original)
+++ webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java Wed Apr 8 10:23:41 2009
@@ -44,7 +44,7 @@
import org.jibx.binding.model.ElementBase;
import org.jibx.binding.model.FormatElement;
import org.jibx.binding.model.IncludeElement;
-import org.jibx.binding.model.MappingElement;
+import org.jibx.binding.model.MappingElementBase;
import org.jibx.binding.model.ModelVisitor;
import org.jibx.binding.model.NamespaceElement;
import org.jibx.binding.model.ValidationContext;
@@ -575,7 +575,7 @@
detail.setAttribute("type-index", clsindex);
bindinit.appendChild(detail);
if (mappedclass == null) {
- MappingElement mapping = (MappingElement)complexTypeMap.get(tname);
+ MappingElementBase mapping = (MappingElementBase)complexTypeMap.get(tname);
mappedclass = mapping.getClassName();
}
}
@@ -830,11 +830,11 @@
} else {
// conversion must be defined by mapping
- MappingElement mapping;
+ MappingElementBase mapping;
if (refname == null) {
// complex type reference translates to abstract mapping in binding
- mapping = (MappingElement)complexTypeMap.get(typename);
+ mapping = (MappingElementBase)complexTypeMap.get(typename);
if (mapping == null) {
throw new RuntimeException("Cannot unwrap element " +
qname + ": no abstract mapping definition found for type " +
@@ -850,7 +850,7 @@
} else {
// element reference translates to concrete mapping
- mapping = (MappingElement)elementMap.get(refname);
+ mapping = (MappingElementBase)elementMap.get(refname);
if (mapping == null) {
throw new RuntimeException("Cannot unwrap element " +
qname + ": no concrete mapping definition found for element " +
@@ -1043,7 +1043,7 @@
if (obj == null) {
throw new RuntimeException("No mapping defined for element " + qname);
}
- MappingElement mapping = (MappingElement)obj;
+ MappingElementBase mapping = (MappingElementBase)obj;
String cname = mapping.getClassName();
codeGenConfig.getTypeMapper().addTypeMappingName(qname, cname);
return cname;
@@ -1087,7 +1087,7 @@
} else if (child.type() == ElementBase.MAPPING_ELEMENT) {
// record only abstract mappings with type names, and mappings with names
- MappingElement mapping = (MappingElement)child;
+ MappingElementBase mapping = (MappingElementBase)child;
bindingMap.put(mapping, binding);
if (mapping.isAbstract() && mapping.getTypeQName() != null) {