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: package org.apache.axis2.jaxws.sample.addressbook;
020:
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlElement;
024: import javax.xml.bind.annotation.XmlType;
025:
026: /**
027: * <p>Java class for AddressBookEntry complex type.
028: *
029: * <p>The following schema fragment specifies the expected content contained within this class.
030: *
031: * <pre>
032: * <complexType name="AddressBookEntry">
033: * <complexContent>
034: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
035: * <sequence>
036: * <element name="firstName" type="{http://www.w3.org/2001/XMLSchema}string"/>
037: * <element name="lastName" type="{http://www.w3.org/2001/XMLSchema}string"/>
038: * <element name="phone" type="{http://www.w3.org/2001/XMLSchema}string"/>
039: * <element name="street" type="{http://www.w3.org/2001/XMLSchema}string"/>
040: * <element name="city" type="{http://www.w3.org/2001/XMLSchema}string"/>
041: * <element name="state" type="{http://www.w3.org/2001/XMLSchema}string"/>
042: * </sequence>
043: * </restriction>
044: * </complexContent>
045: * </complexType>
046: * </pre>
047: *
048: *
049: */
050: @XmlAccessorType(XmlAccessType.FIELD)
051: @XmlType(name="AddressBookEntry",propOrder={"firstName","lastName","phone","street","city","state"})
052: public class AddressBookEntry {
053:
054: @XmlElement(namespace="http://org/apache/axis2/jaxws/sample/addressbook",required=true)
055: protected String firstName;
056: @XmlElement(namespace="http://org/apache/axis2/jaxws/sample/addressbook",required=true)
057: protected String lastName;
058: @XmlElement(namespace="http://org/apache/axis2/jaxws/sample/addressbook",required=true,nillable=true)
059: protected String phone;
060: @XmlElement(namespace="http://org/apache/axis2/jaxws/sample/addressbook",required=true,nillable=true)
061: protected String street;
062: @XmlElement(namespace="http://org/apache/axis2/jaxws/sample/addressbook",required=true,nillable=true)
063: protected String city;
064: @XmlElement(namespace="http://org/apache/axis2/jaxws/sample/addressbook",required=true,nillable=true)
065: protected String state;
066:
067: /**
068: * Gets the value of the firstName property.
069: *
070: * @return
071: * possible object is
072: * {@link String }
073: *
074: */
075: public String getFirstName() {
076: return firstName;
077: }
078:
079: /**
080: * Sets the value of the firstName property.
081: *
082: * @param value
083: * allowed object is
084: * {@link String }
085: *
086: */
087: public void setFirstName(String value) {
088: this .firstName = value;
089: }
090:
091: /**
092: * Gets the value of the lastName property.
093: *
094: * @return
095: * possible object is
096: * {@link String }
097: *
098: */
099: public String getLastName() {
100: return lastName;
101: }
102:
103: /**
104: * Sets the value of the lastName property.
105: *
106: * @param value
107: * allowed object is
108: * {@link String }
109: *
110: */
111: public void setLastName(String value) {
112: this .lastName = value;
113: }
114:
115: /**
116: * Gets the value of the phone property.
117: *
118: * @return
119: * possible object is
120: * {@link String }
121: *
122: */
123: public String getPhone() {
124: return phone;
125: }
126:
127: /**
128: * Sets the value of the phone property.
129: *
130: * @param value
131: * allowed object is
132: * {@link String }
133: *
134: */
135: public void setPhone(String value) {
136: this .phone = value;
137: }
138:
139: /**
140: * Gets the value of the street property.
141: *
142: * @return
143: * possible object is
144: * {@link String }
145: *
146: */
147: public String getStreet() {
148: return street;
149: }
150:
151: /**
152: * Sets the value of the street property.
153: *
154: * @param value
155: * allowed object is
156: * {@link String }
157: *
158: */
159: public void setStreet(String value) {
160: this .street = value;
161: }
162:
163: /**
164: * Gets the value of the city property.
165: *
166: * @return
167: * possible object is
168: * {@link String }
169: *
170: */
171: public String getCity() {
172: return city;
173: }
174:
175: /**
176: * Sets the value of the city property.
177: *
178: * @param value
179: * allowed object is
180: * {@link String }
181: *
182: */
183: public void setCity(String value) {
184: this .city = value;
185: }
186:
187: /**
188: * Gets the value of the state property.
189: *
190: * @return
191: * possible object is
192: * {@link String }
193: *
194: */
195: public String getState() {
196: return state;
197: }
198:
199: /**
200: * Sets the value of the state property.
201: *
202: * @param value
203: * allowed object is
204: * {@link String }
205: *
206: */
207: public void setState(String value) {
208: this.state = value;
209: }
210:
211: }
|