001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019:
020: /**
021: * CreateAccountRequest.java
022: *
023: * This file was auto-generated from WSDL
024: * by the Apache Axis2 version: #axisVersion# #today#
025: */package org.apache.axis2.databinding;
026:
027: /** CreateAccountRequest bean class */
028:
029: public class CreateAccountRequest implements
030: org.apache.axis2.databinding.ADBBean {
031:
032: public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
033: "http://www.wso2.com/types", "createAccountRequest", "ns1");
034:
035: /** field for ClientInfo */
036: protected ClientInfo localClientInfo;
037:
038: /**
039: * Auto generated getter method
040: *
041: * @return com.wso2.www.types.ClientInfo
042: */
043: public ClientInfo getClientInfo() {
044: return localClientInfo;
045: }
046:
047: /**
048: * Auto generated setter method
049: *
050: * @param param ClientInfo
051: */
052: public void setClientInfo(ClientInfo param) {
053:
054: this .localClientInfo = param;
055: }
056:
057: /** field for Password */
058: protected java.lang.String localPassword;
059:
060: /**
061: * Auto generated getter method
062: *
063: * @return java.lang.String
064: */
065: public java.lang.String getPassword() {
066: return localPassword;
067: }
068:
069: /**
070: * Auto generated setter method
071: *
072: * @param param Password
073: */
074: public void setPassword(java.lang.String param) {
075:
076: this .localPassword = param;
077: }
078:
079: /** databinding method to get an XML representation of this object */
080: public javax.xml.stream.XMLStreamReader getPullParser(
081: javax.xml.namespace.QName qName) {
082:
083: java.util.ArrayList elementList = new java.util.ArrayList();
084: java.util.ArrayList attribList = new java.util.ArrayList();
085:
086: elementList.add(new javax.xml.namespace.QName(
087: "http://www.wso2.com/types", "clientinfo"));
088: elementList.add(localClientInfo);
089:
090: elementList.add(new javax.xml.namespace.QName("", "password"));
091: elementList
092: .add(org.apache.axis2.databinding.utils.ConverterUtil
093: .convertToString(localPassword));
094:
095: return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
096: qName, elementList.toArray(), attribList.toArray());
097:
098: }
099:
100: /** Factory class that keeps the parse method */
101: public static class Factory {
102: /** static method to create the object */
103: public static CreateAccountRequest parse(
104: javax.xml.stream.XMLStreamReader reader)
105: throws java.lang.Exception {
106: CreateAccountRequest object = new CreateAccountRequest();
107: try {
108: int event = reader.getEventType();
109: int count = 0;
110: int argumentCount = 2;
111: boolean done = false;
112: // event better be a START_ELEMENT. if not we should go up to
113: // the start element here
114: while (!reader.isStartElement()) {
115: event = reader.next();
116: }
117:
118: while (!done) {
119: if (javax.xml.stream.XMLStreamConstants.START_ELEMENT == event) {
120:
121: if ("clientinfo".equals(reader.getLocalName())) {
122:
123: object.setClientInfo(ClientInfo.Factory
124: .parse(reader));
125: count++;
126:
127: }
128:
129: if ("password".equals(reader.getLocalName())) {
130:
131: String content = reader.getElementText();
132: object
133: .setPassword(org.apache.axis2.databinding.utils.ConverterUtil
134: .convertToString(content));
135: count++;
136:
137: }
138:
139: }
140:
141: if (argumentCount == count) {
142: done = true;
143: }
144:
145: if (!done) {
146: event = reader.next();
147: }
148:
149: }
150:
151: } catch (javax.xml.stream.XMLStreamException e) {
152: throw new java.lang.Exception(e);
153: }
154:
155: return object;
156: }
157: }// end of factory class
158:
159: }
|