001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.deployment.deviceanywhere.service;
043:
044: import javax.xml.bind.annotation.XmlAccessType;
045: import javax.xml.bind.annotation.XmlAccessorType;
046: import javax.xml.bind.annotation.XmlElement;
047: import javax.xml.bind.annotation.XmlRootElement;
048: import javax.xml.bind.annotation.XmlType;
049:
050: /**
051: * <p>Java class for anonymous complex type.
052: *
053: * <p>The following schema fragment specifies the expected content contained within this class.
054: *
055: * <pre>
056: * <complexType>
057: * <complexContent>
058: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
059: * <sequence>
060: * <element name="username" type="{http://www.w3.org/2001/XMLSchema}string"/>
061: * <element name="password" type="{http://www.w3.org/2001/XMLSchema}string"/>
062: * <element name="appName" type="{http://www.w3.org/2001/XMLSchema}string"/>
063: * <element name="jarFileData" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
064: * <element name="jadFileData" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
065: * </sequence>
066: * </restriction>
067: * </complexContent>
068: * </complexType>
069: * </pre>
070: *
071: *
072: */
073: @XmlAccessorType(XmlAccessType.FIELD)
074: @XmlType(name="",propOrder={"username","password","appName","jarFileData","jadFileData"})
075: @XmlRootElement(name="uploadApplication")
076: public class UploadApplication {
077:
078: @XmlElement(required=true)
079: protected String username;
080: @XmlElement(required=true)
081: protected String password;
082: @XmlElement(required=true)
083: protected String appName;
084: @XmlElement(required=true)
085: protected byte[] jarFileData;
086: @XmlElement(required=true)
087: protected byte[] jadFileData;
088:
089: /**
090: * Gets the value of the username property.
091: *
092: * @return
093: * possible object is
094: * {@link String }
095: *
096: */
097: public String getUsername() {
098: return username;
099: }
100:
101: /**
102: * Sets the value of the username property.
103: *
104: * @param value
105: * allowed object is
106: * {@link String }
107: *
108: */
109: public void setUsername(String value) {
110: this .username = value;
111: }
112:
113: /**
114: * Gets the value of the password property.
115: *
116: * @return
117: * possible object is
118: * {@link String }
119: *
120: */
121: public String getPassword() {
122: return password;
123: }
124:
125: /**
126: * Sets the value of the password property.
127: *
128: * @param value
129: * allowed object is
130: * {@link String }
131: *
132: */
133: public void setPassword(String value) {
134: this .password = value;
135: }
136:
137: /**
138: * Gets the value of the appName property.
139: *
140: * @return
141: * possible object is
142: * {@link String }
143: *
144: */
145: public String getAppName() {
146: return appName;
147: }
148:
149: /**
150: * Sets the value of the appName property.
151: *
152: * @param value
153: * allowed object is
154: * {@link String }
155: *
156: */
157: public void setAppName(String value) {
158: this .appName = value;
159: }
160:
161: /**
162: * Gets the value of the jarFileData property.
163: *
164: * @return
165: * possible object is
166: * byte[]
167: */
168: public byte[] getJarFileData() {
169: return jarFileData;
170: }
171:
172: /**
173: * Sets the value of the jarFileData property.
174: *
175: * @param value
176: * allowed object is
177: * byte[]
178: */
179: public void setJarFileData(byte[] value) {
180: this .jarFileData = ((byte[]) value);
181: }
182:
183: /**
184: * Gets the value of the jadFileData property.
185: *
186: * @return
187: * possible object is
188: * byte[]
189: */
190: public byte[] getJadFileData() {
191: return jadFileData;
192: }
193:
194: /**
195: * Sets the value of the jadFileData property.
196: *
197: * @param value
198: * allowed object is
199: * byte[]
200: */
201: public void setJadFileData(byte[] value) {
202: this .jadFileData = ((byte[]) value);
203: }
204:
205: }
|