本文整理了Java中org.apache.axis.wsdl.toJava.Utils
类的一些代码示例,展示了Utils
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils
类的具体详情如下:
包路径:org.apache.axis.wsdl.toJava.Utils
类名称:Utils
[英]Class Utils
[中]类Utils
代码示例来源:origin: org.ow2.orchestra/orchestra-axis
/**
* Returns the java package that maps to the given namespace.
*
* @param ns - ns
* @return the java package that maps to the given namespace.
*/
public static String getPackageFromNamespace(final String ns) {
final String packag = Utils.makePackageName(ns);
return packag;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.axis.consumption.core
/**
* xmlNameToJavaClass
* @param xmlname
* @return Java class name
*/
public static String xmlNameToJavaClass(String xmlname)
{
return Utils.xmlNameToJavaClass(xmlname);
}
代码示例来源:origin: org.objectweb.jonas/jonas-generators-wsgen
+ Utils.genQNameAttributeString(elementQName, "operNS")
+ "\"");
+ Utils.genQNameAttributeStringWithLastLocalPart(returnQName, "retNS")
+ "\"");
+ Utils.genQNameAttributeString(returnType, "rtns")
+ "\"");
if (retParam != null) {
TypeEntry type = retParam.getType();
QName returnItemQName = Utils.getItemQName(type);
if (returnItemQName != null) {
pw.print(" returnItemQName=\"");
pw.print(Utils.genQNameAttributeString(returnItemQName, "tns3"));
pw.print("\"");
QName returnItemType = Utils.getItemType(type);
if (returnItemType != null && use == Use.ENCODED) {
pw.print(" returnItemType=\"");
pw.print(Utils.genQNameAttributeString(returnItemType, "tns2"));
pw.print("\"");
QName paramType = Utils.getXSIType(param);
} else {
pw.print(" qname=\""
+ Utils.genQNameAttributeStringWithLastLocalPart(paramQName, "pns")
+ "\"");
代码示例来源:origin: axis/axis
String name = Utils.xmlNameToJava(opName);
String ret = "void";
ret = Utils.getParameterTypeName(parms.returnParam);
String javifiedName = Utils.xmlNameToJava(p.getName());
signature += Utils.getParameterTypeName(p) + " " + javifiedName;
} else {
signature += Utils.holder(p, emitter) + " " + javifiedName;
Fault fault = (Fault) i.next();
String exceptionName =
Utils.getFullExceptionName(fault.getMessage(), symbolTable);
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
String className = Utils.getFullExceptionName(message, symbolTable);
pw.println(" " + Utils.getNewQName(qname)
+ ",");
pw.println(" \"" + className + "\",");
pw.println(" "
+ Utils.getNewQName(info.getXMLType()) + ", ");
pw.println(" "
+ Utils.isFaultComplex(message, symbolTable));
pw.println(" ));");
代码示例来源:origin: axis/axis
String javaOpName = Utils.xmlNameToJava(opName);
QName paramType = Utils.getXSIType(p);
" "
+ "new org.apache.axis.description.ParameterDesc("
+ Utils.getNewQNameWithLastLocalPart(paramName) + ", " + modeStr + ", "
+ Utils.getNewQName(paramType) + ", "
+ Utils.getParameterTypeName(p) + ".class" + ", "
+ inHeader + ", " + outHeader + "), ");
retType = Utils.getXSIType(parameters.returnParam);
returnStr = Utils.getNewQNameWithLastLocalPart(retName);
} else {
returnStr = "null";
+ Utils.getNewQName(retType) + ");");
QName elementQName = Utils.getOperationQName(bindingOper,
bEntry, symbolTable);
+ Utils.getNewQName(elementQName) + ");");
String action = Utils.getOperationSOAPAction(bindingOper);
if (action != null) {
pw.println(" _oper.setSoapAction(\"" + action + "\");");
String opName =
代码示例来源:origin: axis/axis
String javaOpName = Utils.xmlNameToJavaClass(op.getName());
String testMethodName = "test" + counter++ + portName + javaOpName;
pw.print(Utils.getParameterTypeName(returnParam));
pw.print(" value = ");
Utils.isPrimitiveType(returnType)) {
if ("boolean".equals(returnType.getName())) {
pw.println("false;");
pw.print(Utils.xmlNameToJava(op.getName()));
pw.print("(");
pw.print("new " + Utils.holder(param, emitter) + "(");
suffix = ")";
Utils.getConstructorForParam(param, symbolTable,
bThrow);
pw.print(Utils.getFullExceptionName(f.getMessage(),
symbolTable));
pw.println(" e" + count + ") {");
代码示例来源:origin: axis/axis
QName paramType = Utils.getXSIType(p);
String javaType = Utils.getParameterTypeName(p);
if (javaType != null) {
javaType += ".class, ";
String paramNameText = Utils.getNewQNameWithLastLocalPart(p.getQName());
String paramTypeText = Utils.getNewQName(paramType);
QName itemQName = Utils.getItemQName(p.getType());
if (itemQName != null) {
pw.println(" param.setItemQName(" +
Utils.getNewQName(itemQName) + ");");
QName returnType = Utils.getXSIType(returnParam);
String javaType = Utils.getParameterTypeName(returnParam);
+ Utils.getNewQName(returnType) + ");");
pw.println(" oper.setReturnClass(" + javaType + ");");
+ Utils.getNewQNameWithLastLocalPart(returnQName) + ");");
QName itemQName = Utils.getItemQName(returnParam.getType());
if (itemQName != null) {
pw.println(" param = oper.getReturnParamDesc();");
pw.println(" param.setItemQName(" +
Utils.getNewQName(itemQName) + ");");
代码示例来源:origin: org.objectweb.jonas/jonas-generators-wsgen
QName elementQName = Utils.getOperationQName(bindingOper, bEntry, getSymbolTable());
returnType = Utils.getXSIType(params.returnParam);
String soapAction = Utils.getOperationSOAPAction(bindingOper);
代码示例来源:origin: org.apache.axis/axis
Parameter p = (Parameter) parameters.list.get(j);
QName paramType = Utils.getXSIType(p);
QName returnType = Utils.getXSIType(parameters.returnParam);
QName returnQName = parameters.returnParam.getQName();
boolean hasMIME = Utils.hasMIME(bEntry, bop);
Use use = bEntry.getInputBodyType(bop.getOperation());
setOperationUse(use);
} else {
QName elementQName =
Utils.getOperationQName(bop, bEntry, symbolTable);
if (elementQName != null) {
setOperationName(elementQName);
代码示例来源:origin: axis/axis
boolean hasMIME = Utils.hasMIME(bEntry, operation);
pw.println(" _call.setOperationName(" + Utils.getNewQName(q)
+ ");");
} else {
QName elementQName = Utils.getOperationQName(operation, bEntry,
symbolTable);
+ Utils.getNewQName(elementQName) + ");");
代码示例来源:origin: org.apache.axis/axis
|| param.getType().getUnderlTypeNillable()) {
paramType = getWrapperType(param.getType());
return "new " + Utils.getParameterTypeName(param) + "()";
Vector v = Utils.getEnumerationBaseAndValues(param.getType().getNode(),
symbolTable);
Vector v2 = Utils.getEnumerationBaseAndValues(param.getType().getRefType().getNode(),
symbolTable);
代码示例来源:origin: org.apache.axis/axis
if (null != Utils.getEnumerationBaseAndValues(
elem.getType().getNode(), emitter.getSymbolTable())) {
enumerationTypes.add(typeName);
typeName = Utils.getWrapperType(typeName);
if (null != Utils.getEnumerationBaseAndValues(attr.getType().getNode(),
emitter.getSymbolTable())) {
enumerationTypes.add(typeName);
String typeName = extendType.getName();
String elemName = extendType.getQName().getLocalPart();
String variableName = Utils.xmlNameToJava(elemName);
if((extendType != null) && (Utils.getEnumerationBaseAndValues(
extendType.getNode(), emitter.getSymbolTable()) != null)){
enableDefaultConstructor = false;
代码示例来源:origin: org.objectweb.jonas/jonas-generators-wsgen
if (!Utils.shouldEmit(type)) {
process = false;
&& (Utils.getEnumerationBaseAndValues(type.getNode(), getSymbolTable()) != null)) {
serializerFactory = "org.apache.axis.encoding.ser.EnumSerializerFactory";
deserializerFactory = "org.apache.axis.encoding.ser.EnumDeserializerFactory";
代码示例来源:origin: axis/axis
} else if ((type.getNode() != null) && (Utils.getEnumerationBaseAndValues(
type.getNode(), symbolTable) != null)) {
pw.println(" cachedSerFactories.add(enumsf);");
代码示例来源:origin: axis/axis
FaultInfo faultInfo = (FaultInfo) fi.next();
Message message = faultInfo.getMessage();
String name = Utils.getFullExceptionName(message,
symbolTable);
代码示例来源:origin: org.objectweb.jonas/jonas-generators-wsgen
/**
* Raw routine that writes out the arrayMapping.
* @param pw PrintWriter
* @param namespaceURI xml type namespace
* @param localPart xml type localpart
* @param javaType java classname
* @param encodingStyle encoding style
* @param innerType array component type QName
*/
protected void writeArrayTypeMapping(
PrintWriter pw, String namespaceURI, String localPart, String javaType, String encodingStyle, QName innerType) {
pw.println(" <arrayMapping");
pw.println(" xmlns:ns=\"" + namespaceURI + "\"");
pw.println(" qname=\"ns:" + localPart + '"');
pw.println(" type=\"java:" + javaType + '"');
pw.println(" innerType=\"" + Utils.genQNameAttributeString(innerType, "cmp-ns") + '"');
pw.println(" encodingStyle=\"" + encodingStyle + "\"");
pw.println(" />");
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
String javaOpName = Utils.xmlNameToJava(opName);
QName paramType = Utils.getXSIType(p);
" "
+ "new org.apache.axis.description.ParameterDesc("
+ Utils.getNewQNameWithLastLocalPart(paramName) + ", " + modeStr + ", "
+ Utils.getNewQName(paramType) + ", "
+ Utils.getParameterTypeName(p) + ".class" + ", "
+ inHeader + ", " + outHeader + "), ");
retType = Utils.getXSIType(parameters.returnParam);
returnStr = Utils.getNewQNameWithLastLocalPart(retName);
} else {
returnStr = "null";
+ Utils.getNewQName(retType) + ");");
QName elementQName = Utils.getOperationQName(bindingOper,
bEntry, symbolTable);
+ Utils.getNewQName(elementQName) + ");");
String action = Utils.getOperationSOAPAction(bindingOper);
if (action != null) {
pw.println(" _oper.setSoapAction(\"" + action + "\");");
String opName =
代码示例来源:origin: org.apache.axis/axis
String javaOpName = Utils.xmlNameToJavaClass(op.getName());
String testMethodName = "test" + counter++ + portName + javaOpName;
pw.print(Utils.getParameterTypeName(returnParam));
pw.print(" value = ");
Utils.isPrimitiveType(returnType)) {
if ("boolean".equals(returnType.getName())) {
pw.println("false;");
pw.print(Utils.xmlNameToJava(op.getName()));
pw.print("(");
pw.print("new " + Utils.holder(param, emitter) + "(");
suffix = ")";
Utils.getConstructorForParam(param, symbolTable,
bThrow);
pw.print(Utils.getFullExceptionName(f.getMessage(),
symbolTable));
pw.println(" e" + count + ") {");
代码示例来源:origin: org.apache.axis/axis
QName paramType = Utils.getXSIType(p);
String javaType = Utils.getParameterTypeName(p);
if (javaType != null) {
javaType += ".class, ";
String paramNameText = Utils.getNewQNameWithLastLocalPart(p.getQName());
String paramTypeText = Utils.getNewQName(paramType);
QName itemQName = Utils.getItemQName(p.getType());
if (itemQName != null) {
pw.println(" param.setItemQName(" +
Utils.getNewQName(itemQName) + ");");
QName returnType = Utils.getXSIType(returnParam);
String javaType = Utils.getParameterTypeName(returnParam);
+ Utils.getNewQName(returnType) + ");");
pw.println(" oper.setReturnClass(" + javaType + ");");
+ Utils.getNewQNameWithLastLocalPart(returnQName) + ");");
QName itemQName = Utils.getItemQName(returnParam.getType());
if (itemQName != null) {
pw.println(" param = oper.getReturnParamDesc();");
pw.println(" param.setItemQName(" +
Utils.getNewQName(itemQName) + ");");
内容来源于网络,如有侵权,请联系作者删除!