/** * Return whether the underlying type is nillable if this is an array type. * @return true if it is an array and nillable */ public boolean getUnderlTypeNillable() { // refType could refer to array with underlying nillable // type - set the underlTypeNillable to true if this is // the case. if (!underlTypeNillable && !getDimensions().equals("") && refType != null) { underlTypeNillable = refType.getUnderlTypeNillable(); } return underlTypeNillable; }
/** * Return whether the underlying type is nillable if this is an array type. * @return true if it is an array and nillable */ public boolean getUnderlTypeNillable() { // refType could refer to array with underlying nillable // type - set the underlTypeNillable to true if this is // the case. if (!underlTypeNillable && !getDimensions().equals("") && refType != null) { underlTypeNillable = refType.getUnderlTypeNillable(); } return underlTypeNillable; }
/** * Return whether the underlying type is nillable if this is an array type. * @return true if it is an array and nillable */ public boolean getUnderlTypeNillable() { // refType could refer to array with underlying nillable // type - set the underlTypeNillable to true if this is // the case. if (!underlTypeNillable && !getDimensions().equals("") && refType != null) { underlTypeNillable = refType.getUnderlTypeNillable(); } return underlTypeNillable; }
/** * 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
/** * 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
/** * 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
|| (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
|| (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
|| (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
|| (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
|| (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
|| (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
|| (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
|| (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
if (elem.getAnyElement()) { typeName = "org.apache.axis.message.MessageElement []"; } else if (elem.getType().getUnderlTypeNillable() || (elem.getNillable() && elem.getMaxOccursIsUnbounded())) {
if (elem.getAnyElement()) { typeName = "org.apache.axis.message.MessageElement []"; } else if (elem.getType().getUnderlTypeNillable() || (elem.getNillable() && elem.getMaxOccursIsUnbounded())) {
if (elem.getAnyElement()) { typeName = "org.apache.axis.message.MessageElement []"; } else if (elem.getType().getUnderlTypeNillable() || (elem.getNillable() && elem.getMaxOccursIsUnbounded())) {
|| (parm.getType() instanceof CollectionType && ((CollectionType) parm.getType()).isWrapped()) || parm.getType().getUnderlTypeNillable()) {
|| (parm.getType() instanceof CollectionType && ((CollectionType) parm.getType()).isWrapped()) || parm.getType().getUnderlTypeNillable()) {
|| (parm.getType() instanceof CollectionType && ((CollectionType) parm.getType()).isWrapped()) || parm.getType().getUnderlTypeNillable()) {