本文整理了Java中org.apache.axis.wsdl.toJava.Utils.getWrapperType()
方法的一些代码示例,展示了Utils.getWrapperType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.getWrapperType()
方法的具体详情如下:
包路径:org.apache.axis.wsdl.toJava.Utils
类名称:Utils
方法名:getWrapperType
[英]Return a "wrapper" type for the given type name. In other words, if it's a primitive type ("int") return the java wrapper class ("java.lang.Integer"). Otherwise return the type name itself.
[中]返回给定类型名的“包装器”类型。换句话说,如果是基元类型(“int”),则返回java包装类(“java.lang.Integer”)。否则返回类型名称本身。
代码示例来源:origin: axis/axis
/**
* Returns a "wrapper" type for the given TypeEntry.
*
* @param type
* @return the name of a java wrapper class for the type, or the type's
* name if it's not a primitive.
*/
public static String getWrapperType(TypeEntry type) {
String dims = type.getDimensions();
if (!dims.equals("")) {
TypeEntry te = type.getRefType();
if (te != null
&& !te.getDimensions().equals("")) {
return getWrapperType(te) + dims;
}
if (te instanceof BaseType
|| te instanceof DefinedElement
&& te.getRefType() instanceof BaseType) {
return getWrapperType(te) + dims;
}
}
return getWrapperType(type.getName());
}
代码示例来源:origin: org.apache.axis/axis
/**
* Returns a "wrapper" type for the given TypeEntry.
*
* @param type
* @return the name of a java wrapper class for the type, or the type's
* name if it's not a primitive.
*/
public static String getWrapperType(TypeEntry type) {
String dims = type.getDimensions();
if (!dims.equals("")) {
TypeEntry te = type.getRefType();
if (te != null
&& !te.getDimensions().equals("")) {
return getWrapperType(te) + dims;
}
if (te instanceof BaseType
|| te instanceof DefinedElement
&& te.getRefType() instanceof BaseType) {
return getWrapperType(te) + dims;
}
}
return getWrapperType(type.getName());
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Returns a "wrapper" type for the given TypeEntry.
*
* @param type
* @return the name of a java wrapper class for the type, or the type's
* name if it's not a primitive.
*/
public static String getWrapperType(TypeEntry type) {
String dims = type.getDimensions();
if (!dims.equals("")) {
TypeEntry te = type.getRefType();
if (te != null
&& !te.getDimensions().equals("")) {
return getWrapperType(te) + dims;
}
if (te instanceof BaseType
|| te instanceof DefinedElement
&& te.getRefType() instanceof BaseType) {
return getWrapperType(te) + dims;
}
}
return getWrapperType(type.getName());
}
代码示例来源:origin: org.apache.axis/axis
/**
* Generate the holder for the given complex type.
*
* @param pw
* @throws IOException
*/
protected void writeFileBody(PrintWriter pw) throws IOException {
String holderType = type.getName();
if ((type instanceof CollectionType
&& ((CollectionType) type).isWrapped())
|| type.getUnderlTypeNillable()) {
/*
* For soapenc arrays or elements with maxOccurs="unbounded"
* having a primitive type and nillable="true" the holderType
* should be the corresponding wrapped type.
*/
holderType = Utils.getWrapperType(type);
}
pw.println(" public " + holderType + " value;");
pw.println();
pw.println(" public " + className + "() {");
pw.println(" }");
pw.println();
pw.println(" public " + className + "(" + holderType + " value) {");
pw.println(" this.value = value;");
pw.println(" }");
pw.println();
} // writeOperation
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Generate the holder for the given complex type.
*
* @param pw
* @throws IOException
*/
protected void writeFileBody(PrintWriter pw) throws IOException {
String holderType = type.getName();
if ((type instanceof CollectionType
&& ((CollectionType) type).isWrapped())
|| type.getUnderlTypeNillable()) {
/*
* For soapenc arrays or elements with maxOccurs="unbounded"
* having a primitive type and nillable="true" the holderType
* should be the corresponding wrapped type.
*/
holderType = Utils.getWrapperType(type);
}
pw.println(" public " + holderType + " value;");
pw.println();
pw.println(" public " + className + "() {");
pw.println(" }");
pw.println();
pw.println(" public " + className + "(" + holderType + " value) {");
pw.println(" this.value = value;");
pw.println(" }");
pw.println();
} // writeOperation
代码示例来源:origin: axis/axis
if (actualClass == componentType
|| (actualClass != null && (componentType.isAssignableFrom(actualClass)
|| Utils.getWrapperType(actualClass.getName()).equals(componentType.getName())))) {
return null;
代码示例来源:origin: axis/axis
/**
* Generate the holder for the given complex type.
*
* @param pw
* @throws IOException
*/
protected void writeFileBody(PrintWriter pw) throws IOException {
String holderType = type.getName();
if ((type instanceof CollectionType
&& ((CollectionType) type).isWrapped())
|| type.getUnderlTypeNillable()) {
/*
* For soapenc arrays or elements with maxOccurs="unbounded"
* having a primitive type and nillable="true" the holderType
* should be the corresponding wrapped type.
*/
holderType = Utils.getWrapperType(type);
}
pw.println(" public " + holderType + " value;");
pw.println();
pw.println(" public " + className + "() {");
pw.println(" }");
pw.println();
pw.println(" public " + className + "(" + holderType + " value) {");
pw.println(" this.value = value;");
pw.println(" }");
pw.println();
} // writeOperation
代码示例来源:origin: org.apache.axis/axis
if (actualClass == componentType
|| (actualClass != null && (componentType.isAssignableFrom(actualClass)
|| Utils.getWrapperType(actualClass.getName()).equals(componentType.getName())))) {
return null;
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
if (actualClass == componentType
|| (actualClass != null && (componentType.isAssignableFrom(actualClass)
|| Utils.getWrapperType(actualClass.getName()).equals(componentType.getName())))) {
return null;
代码示例来源:origin: org.apache.axis/axis
|| param.getType().getUnderlTypeNillable()) {
typeName = getWrapperType(param.getType());
代码示例来源:origin: axis/axis
|| param.getType().getUnderlTypeNillable()) {
typeName = Utils.getWrapperType(type);
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
|| param.getType().getUnderlTypeNillable()) {
typeName = getWrapperType(param.getType());
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
|| param.getType().getUnderlTypeNillable()) {
typeName = Utils.getWrapperType(type);
代码示例来源:origin: org.apache.axis/axis
|| param.getType().getUnderlTypeNillable()) {
typeName = Utils.getWrapperType(type);
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
typeName = Utils.getWrapperType(elem.getType());
} else if (elem.getMinOccursIs0() && elem.getMaxOccursIsExactlyOne()
|| elem.getNillable() || elem.getOptional()) {
typeName = Utils.getWrapperType(typeName);
代码示例来源:origin: axis/axis
typeName = Utils.getWrapperType(elem.getType());
} else if (elem.getMinOccursIs0() && elem.getMaxOccursIsExactlyOne()
|| elem.getNillable() || elem.getOptional()) {
typeName = Utils.getWrapperType(typeName);
代码示例来源:origin: org.apache.axis/axis
typeName = Utils.getWrapperType(elem.getType());
} else if (elem.getMinOccursIs0() && elem.getMaxOccursIsExactlyOne()
|| elem.getNillable() || elem.getOptional()) {
typeName = Utils.getWrapperType(typeName);
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
|| parm.getType().getUnderlTypeNillable()) {
ret = getWrapperType(parm.getType());
代码示例来源:origin: axis/axis
|| parm.getType().getUnderlTypeNillable()) {
ret = getWrapperType(parm.getType());
代码示例来源:origin: org.apache.axis/axis
|| parm.getType().getUnderlTypeNillable()) {
ret = getWrapperType(parm.getType());
内容来源于网络,如有侵权,请联系作者删除!