/** * 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
symbolTablePut(new CollectionType(qName, containedTE, node, "[]", wrapped)); } else {
symbolTablePut(new CollectionType(qName, containedTE, node, "[]", wrapped)); } else {
/** * 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
symbolTablePut(new CollectionType(qName, containedTE, node, "[]", wrapped)); } else {
/** * 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
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) param.getType()).isWrapped()) || param.getType().getUnderlTypeNillable()) {
&& ((CollectionType) parm.getType()).isWrapped()) || parm.getType().getUnderlTypeNillable()) {
&& ((CollectionType) parm.getType()).isWrapped()) || parm.getType().getUnderlTypeNillable()) {