001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-hudson-3037-ea3
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2006.10.31 at 03:13:32 PM PST
006: //
007:
008: package org.geotools.po;
009:
010: import java.math.BigDecimal;
011: import javax.xml.bind.annotation.AccessType;
012: import javax.xml.bind.annotation.XmlAccessorType;
013: import javax.xml.bind.annotation.XmlAttribute;
014: import javax.xml.bind.annotation.XmlType;
015: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
016: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
017: import org.geotools.po.USAddress;
018:
019: /**
020: * <p>Java class for USAddress complex type.
021: *
022: * <p>The following schema fragment specifies the expected content contained within this class.
023: *
024: * <pre>
025: * <complexType name="USAddress">
026: * <complexContent>
027: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
028: * <sequence>
029: * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
030: * <element name="street" type="{http://www.w3.org/2001/XMLSchema}string"/>
031: * <element name="city" type="{http://www.w3.org/2001/XMLSchema}string"/>
032: * <element name="state" type="{http://www.w3.org/2001/XMLSchema}string"/>
033: * <element name="zip" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
034: * </sequence>
035: * <attribute name="country" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" fixed="US" />
036: * </restriction>
037: * </complexContent>
038: * </complexType>
039: * </pre>
040: *
041: *
042: */
043: @XmlAccessorType(AccessType.FIELD)
044: @XmlType(name="USAddress",propOrder={"name","street","city","state","zip"})
045: public class USAddress {
046:
047: protected String name;
048: protected String street;
049: protected String city;
050: protected String state;
051: protected BigDecimal zip;
052: @XmlAttribute
053: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
054: protected String country;
055:
056: /**
057: * Gets the value of the name property.
058: *
059: * @return
060: * possible object is
061: * {@link String }
062: *
063: */
064: public String getName() {
065: return name;
066: }
067:
068: /**
069: * Sets the value of the name property.
070: *
071: * @param value
072: * allowed object is
073: * {@link String }
074: *
075: */
076: public void setName(String value) {
077: this .name = value;
078: }
079:
080: /**
081: * Gets the value of the street property.
082: *
083: * @return
084: * possible object is
085: * {@link String }
086: *
087: */
088: public String getStreet() {
089: return street;
090: }
091:
092: /**
093: * Sets the value of the street property.
094: *
095: * @param value
096: * allowed object is
097: * {@link String }
098: *
099: */
100: public void setStreet(String value) {
101: this .street = value;
102: }
103:
104: /**
105: * Gets the value of the city property.
106: *
107: * @return
108: * possible object is
109: * {@link String }
110: *
111: */
112: public String getCity() {
113: return city;
114: }
115:
116: /**
117: * Sets the value of the city property.
118: *
119: * @param value
120: * allowed object is
121: * {@link String }
122: *
123: */
124: public void setCity(String value) {
125: this .city = value;
126: }
127:
128: /**
129: * Gets the value of the state property.
130: *
131: * @return
132: * possible object is
133: * {@link String }
134: *
135: */
136: public String getState() {
137: return state;
138: }
139:
140: /**
141: * Sets the value of the state property.
142: *
143: * @param value
144: * allowed object is
145: * {@link String }
146: *
147: */
148: public void setState(String value) {
149: this .state = value;
150: }
151:
152: /**
153: * Gets the value of the zip property.
154: *
155: * @return
156: * possible object is
157: * {@link BigDecimal }
158: *
159: */
160: public BigDecimal getZip() {
161: return zip;
162: }
163:
164: /**
165: * Sets the value of the zip property.
166: *
167: * @param value
168: * allowed object is
169: * {@link BigDecimal }
170: *
171: */
172: public void setZip(BigDecimal value) {
173: this .zip = value;
174: }
175:
176: /**
177: * Gets the value of the country property.
178: *
179: * @return
180: * possible object is
181: * {@link String }
182: *
183: */
184: public String getCountry() {
185: if (country == null) {
186: return "US";
187: } else {
188: return country;
189: }
190: }
191:
192: /**
193: * Sets the value of the country property.
194: *
195: * @param value
196: * allowed object is
197: * {@link String }
198: *
199: */
200: public void setCountry(String value) {
201: this.country = value;
202: }
203:
204: }
|