001: /*
002: * Copyright 2001-2004 The Apache Software Foundation.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016:
017: package org.apache.ws.scout.registry.infomodel;
018:
019: import javax.xml.registry.infomodel.ClassificationScheme;
020: import javax.xml.registry.infomodel.PostalAddress;
021:
022: /**
023: * Implements PostalAddress Interface
024: * Implements JAXR Interface.
025: * For futher details, look into the JAXR API Javadoc.
026: *
027: * @author Anil Saldhana <anil@apache.org>
028: */
029: public class PostalAddressImpl extends ExtensibleObjectImpl implements
030: PostalAddress {
031: private static final String EMPTY_STRING = "";
032: private String street = EMPTY_STRING;
033: private String streetNumber = EMPTY_STRING;
034: private String city = EMPTY_STRING;
035: private String stateOrProvince = EMPTY_STRING;
036: private String postalCode = EMPTY_STRING;
037: private String country = EMPTY_STRING;
038: private String type = EMPTY_STRING;
039: private ClassificationScheme postalScheme;
040:
041: /**
042: * Creates a new instance of PostalAddressImpl
043: */
044: public PostalAddressImpl(ClassificationScheme postalScheme) {
045: this .postalScheme = postalScheme;
046: }
047:
048: public PostalAddressImpl() {
049: }
050:
051: public String getCity() {
052: return city;
053: }
054:
055: public void setCity(String city) {
056: this .city = city;
057: }
058:
059: public String getCountry() {
060: return country;
061: }
062:
063: public void setCountry(String country) {
064: this .country = country;
065: }
066:
067: public String getPostalCode() {
068: return postalCode;
069: }
070:
071: public void setPostalCode(String postalCode) {
072: this .postalCode = postalCode;
073: }
074:
075: public ClassificationScheme getPostalScheme() {
076: return postalScheme;
077: }
078:
079: public void setPostalScheme(ClassificationScheme postalScheme) {
080: this .postalScheme = postalScheme;
081: }
082:
083: public String getStateOrProvince() {
084: return stateOrProvince;
085: }
086:
087: public void setStateOrProvince(String stateOrProvince) {
088: this .stateOrProvince = stateOrProvince;
089: }
090:
091: public String getStreet() {
092: return street;
093: }
094:
095: public void setStreet(String street) {
096: this .street = street;
097: }
098:
099: public String getStreetNumber() {
100: return streetNumber;
101: }
102:
103: public void setStreetNumber(String streetNumber) {
104: this .streetNumber = streetNumber;
105: }
106:
107: public String getType() {
108: return type;
109: }
110:
111: public void setType(String type) {
112: this.type = type;
113: }
114: }
|