org.deegree_impl.ogcbasic
Class ContactAddress_Impl

java.lang.Object
  extended byorg.deegree_impl.ogcbasic.ContactAddress_Impl
All Implemented Interfaces:
ContactAddress, Marshallable

public class ContactAddress_Impl
extends java.lang.Object
implements ContactAddress, Marshallable

specifies the data structure of a address and the access to its components based on ISO 19115

----------------------------------------------------------------------

Version:
$Revision: 1.2 $
Author:
Katharina Lupp, Markus Schneider

Field Summary
private  java.lang.String address
           
private  java.lang.String addressType
           
private  java.lang.String city
           
private  java.lang.String country
           
private  java.lang.String postCode
           
private  java.lang.String stateOrProvince
           
 
Constructor Summary
ContactAddress_Impl()
          default constructor
ContactAddress_Impl(java.lang.String addressType, java.lang.String address, java.lang.String city, java.lang.String stateOrProvince, java.lang.String postCode, java.lang.String country)
          constructor initializing the class with ContactAddress Strings
 
Method Summary
 java.lang.String exportAsXML()
          Returns an XML representation of this object.
 java.lang.String getAddress()
          returns the address. usally this is the street and number of a building.
 java.lang.String getAddressType()
          returns the address type. e.g.
 java.lang.String getCity()
          returns the name of the city
 java.lang.String getCountry()
          returns the name of the country. this should be the complete name and not an abbreviation.
 java.lang.String getPostCode()
          returns the post code.
 java.lang.String getStateOrProvince()
          returns the name of the state or province of the address.
 void setAddress(java.lang.String address)
          sets the address. usally this is the street and number of a building.
 void setAddressType(java.lang.String addressType)
          sets the address type. e.g.
 void setCity(java.lang.String city)
          sets the name of the city
 void setCountry(java.lang.String country)
          sets the name of the country. this should be the complete name and not an abbreviation.
 void setPostCode(java.lang.String postCode)
          sets the post code.
 void setStateOrProvince(java.lang.String stateOrProvince)
          sets the name of the state or province of the address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

private java.lang.String address

addressType

private java.lang.String addressType

city

private java.lang.String city

country

private java.lang.String country

postCode

private java.lang.String postCode

stateOrProvince

private java.lang.String stateOrProvince
Constructor Detail

ContactAddress_Impl

public ContactAddress_Impl()
default constructor


ContactAddress_Impl

public ContactAddress_Impl(java.lang.String addressType,
                           java.lang.String address,
                           java.lang.String city,
                           java.lang.String stateOrProvince,
                           java.lang.String postCode,
                           java.lang.String country)
constructor initializing the class with ContactAddress Strings

Method Detail

getAddressType

public java.lang.String getAddressType()
returns the address type. e.g. 'postal'

Specified by:
getAddressType in interface ContactAddress

setAddressType

public void setAddressType(java.lang.String addressType)
sets the address type. e.g. 'postal'


getAddress

public java.lang.String getAddress()
returns the address. usally this is the street and number of a building. It also can be a p.o. box

Specified by:
getAddress in interface ContactAddress

setAddress

public void setAddress(java.lang.String address)
sets the address. usally this is the street and number of a building. It also can be a p.o. box


getCity

public java.lang.String getCity()
returns the name of the city

Specified by:
getCity in interface ContactAddress

setCity

public void setCity(java.lang.String city)
sets the name of the city


getStateOrProvince

public java.lang.String getStateOrProvince()
returns the name of the state or province of the address.

Specified by:
getStateOrProvince in interface ContactAddress

setStateOrProvince

public void setStateOrProvince(java.lang.String stateOrProvince)
sets the name of the state or province of the address.


getPostCode

public java.lang.String getPostCode()
returns the post code. This doesn't contain an abbreviation for the country

Specified by:
getPostCode in interface ContactAddress

setPostCode

public void setPostCode(java.lang.String postCode)
sets the post code. This doesn't contain an abbreviation for the country


getCountry

public java.lang.String getCountry()
returns the name of the country. this should be the complete name and not an abbreviation.

Specified by:
getCountry in interface ContactAddress

setCountry

public void setCountry(java.lang.String country)
sets the name of the country. this should be the complete name and not an abbreviation.


exportAsXML

public java.lang.String exportAsXML()
Returns an XML representation of this object.

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object