com.sun.xml.registry.uddi.infomodel
Class PostalAddressImpl

java.lang.Object
  extended by com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
      extended by com.sun.xml.registry.uddi.infomodel.PostalAddressImpl
All Implemented Interfaces:
Serializable, ExtensibleObject, PostalAddress

public class PostalAddressImpl
extends ExtensibleObjectImpl
implements PostalAddress, Serializable

Author:
kwalsh, Bobby Bissett
See Also:
Serialized Form

Constructor Summary
PostalAddressImpl()
          Creates new PostalAddressImpl.
PostalAddressImpl(String streetNumber, String street, String city, String stateOrProvince, String country, String postalCode, String type)
          Utility constructor
 
Method Summary
 String getCity()
          The city
 String getCountry()
          The country
 String getPostalCode()
          The postal or zip code
 ClassificationScheme getPostalScheme()
          Get a user-defined postal scheme for codifying the attributes of PostalAddress If none is defined for this object, then must rerturn the default value returned by RegistryService#getDefaultPostalScheme()
 String getStateOrProvince()
          The state or province
 String getStreet()
          The street address
 String getStreetNumber()
          The street number
 String getType()
          The type of address (e.g.
 void setCity(String city)
          Sets the city
 void setCountry(String country)
          Sets the country
 void setPostalCode(String postalCode)
          Sets the postal or zip code
 void setPostalScheme(ClassificationScheme scheme)
          Set a user-defined postal scheme for codifying the attributes of PostalAddress
 void setStateOrProvince(String stateOrProvince)
          Sets the state or province
 void setStreet(String street)
          Sets the street address
 void setStreetNumber(String streetNumber)
          Sets the street number
 void setType(String type)
          Sets the type of address (e.g.
 
Methods inherited from class com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 

Constructor Detail

PostalAddressImpl

public PostalAddressImpl()
Creates new PostalAddressImpl. Sets default empty strings.


PostalAddressImpl

public PostalAddressImpl(String streetNumber,
                         String street,
                         String city,
                         String stateOrProvince,
                         String country,
                         String postalCode,
                         String type)
Utility constructor

Method Detail

getStreet

public String getStreet()
                 throws JAXRException
The street address

Specified by:
getStreet in interface PostalAddress
Returns:
the street name
Throws:
JAXRException - If the JAXR provider encounters an internal error

setStreet

public void setStreet(String street)
               throws JAXRException
Sets the street address

Specified by:
setStreet in interface PostalAddress
Parameters:
street - the street name
Throws:
JAXRException - If the JAXR provider encounters an internal error

getStreetNumber

public String getStreetNumber()
                       throws JAXRException
The street number

Specified by:
getStreetNumber in interface PostalAddress
Returns:
the street number
Throws:
JAXRException - If the JAXR provider encounters an internal error

setStreetNumber

public void setStreetNumber(String streetNumber)
                     throws JAXRException
Sets the street number

Specified by:
setStreetNumber in interface PostalAddress
Parameters:
streetNumber - the street number
Throws:
JAXRException - If the JAXR provider encounters an internal error

getCity

public String getCity()
               throws JAXRException
The city

Specified by:
getCity in interface PostalAddress
Returns:
the city
Throws:
JAXRException - If the JAXR provider encounters an internal error

setCity

public void setCity(String city)
             throws JAXRException
Sets the city

Specified by:
setCity in interface PostalAddress
Parameters:
city - the city
Throws:
JAXRException - If the JAXR provider encounters an internal error

getStateOrProvince

public String getStateOrProvince()
                          throws JAXRException
The state or province

Specified by:
getStateOrProvince in interface PostalAddress
Returns:
the state or province
Throws:
JAXRException - If the JAXR provider encounters an internal error

setStateOrProvince

public void setStateOrProvince(String stateOrProvince)
                        throws JAXRException
Sets the state or province

Specified by:
setStateOrProvince in interface PostalAddress
Parameters:
stateOrProvince - the state or province
Throws:
JAXRException - If the JAXR provider encounters an internal error

getPostalCode

public String getPostalCode()
                     throws JAXRException
The postal or zip code

Specified by:
getPostalCode in interface PostalAddress
Returns:
the postal code (e.g. US zip code)
Throws:
JAXRException - If the JAXR provider encounters an internal error

setPostalCode

public void setPostalCode(String postalCode)
                   throws JAXRException
Sets the postal or zip code

Specified by:
setPostalCode in interface PostalAddress
Parameters:
postalCode - the postal code (e.g. US zip code)
Throws:
JAXRException - If the JAXR provider encounters an internal error

getCountry

public String getCountry()
                  throws JAXRException
The country

Specified by:
getCountry in interface PostalAddress
Returns:
the country
Throws:
JAXRException - If the JAXR provider encounters an internal error

setCountry

public void setCountry(String country)
                throws JAXRException
Sets the country

Specified by:
setCountry in interface PostalAddress
Parameters:
country - the country
Throws:
JAXRException - If the JAXR provider encounters an internal error

getType

public String getType()
               throws JAXRException
The type of address (e.g. "headquarters" etc.) as a String

Specified by:
getType in interface PostalAddress
Returns:
the type for this PostalAddress. This is an arbitrary String (e.g. "Home", "Office")
Throws:
JAXRException - If the JAXR provider encounters an internal error

setType

public void setType(String type)
             throws JAXRException
Sets the type of address (e.g. "headquarters" etc.) as a Concept

Specified by:
setType in interface PostalAddress
Parameters:
type - the type for this PostalAddress. This is an arbitrary String (e.g. "Home", "Office")
Throws:
JAXRException - If the JAXR provider encounters an internal error

getPostalScheme

public ClassificationScheme getPostalScheme()
                                     throws JAXRException
Get a user-defined postal scheme for codifying the attributes of PostalAddress If none is defined for this object, then must rerturn the default value returned by RegistryService#getDefaultPostalScheme()

Specified by:
getPostalScheme in interface PostalAddress
Returns:
the user defined postal scheme.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
RegistryService.getDefaultPostalScheme()

setPostalScheme

public void setPostalScheme(ClassificationScheme scheme)
                     throws JAXRException
Set a user-defined postal scheme for codifying the attributes of PostalAddress

Specified by:
setPostalScheme in interface PostalAddress
Parameters:
scheme - the user defined postal scheme.
Throws:
JAXRException - If the JAXR provider encounters an internal error


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.