All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.stub.ksoap.constants.vm Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
#parse("${include}/generic.include.vm")
#parse("${include}/webclient.ksoap.include.vm")
#set ( $className                ="$I_CONSTANT")
$codewriter.setCurrentJavaFilename("$pkg", "${className}.java")
package $pkg;
import java.util.ArrayList;
import java.util.List;
import org.ksoap2.serialization.PropertyInfo;
/**
 *
 * 常量定义
 * $GENERAED_BY
* @author guyadong * */ public interface ${className} { public interface $I_NS{ #foreach( $entry in $axisService.namespaceMap.entrySet()) final String $entry.key = "$entry.value"; #end } #* public interface BeanName{ #foreach( $entry in $webServiceInfo.qNameToClassMap.entrySet()) final String ${entry.key.prefix}_$entry.key.localPart = "$entry.value.name"; #end }*# public final List $V_COMPLEXTYPES=new ArrayList(){ private static final long serialVersionUID = 1L; { PropertyInfo info; #set($count=0) #foreach($complexType in $sourceinfo.complexTypeBeans.values()) #set($count= $count + 1) //$count BEANS info=new PropertyInfo(); info.name="${complexType.baseClass.simpleName}"; info.namespace=$I_NS.$webServiceInfo.getPrefix($complexType.schemaObj.QName); info.type=#getKname($complexType.baseClass).class; add(info); #end #foreach($name in ["REQUEST","RESPONSE","FAULT","OTHER"]) #foreach($complexType in $sourceinfo.schemaMap[$name].values()) #set($count= $count + 1) //$count $name info=new PropertyInfo(); info.name="$complexType.schemaObj.name"; info.namespace=$I_NS.$webServiceInfo.getPrefix($complexType.schemaObj.QName); info.type=${TOOL.toClassName($complexType.schemaObj.name)}.class; add(info); #end #end } }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy