Class PostalAddressImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- 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
Constructors Constructor Description PostalAddressImpl()Creates new PostalAddressImpl.PostalAddressImpl(String streetNumber, String street, String city, String stateOrProvince, String country, String postalCode, String type)Utility constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCity()The cityStringgetCountry()The countryStringgetPostalCode()The postal or zip codeClassificationSchemegetPostalScheme()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()StringgetStateOrProvince()The state or provinceStringgetStreet()The street addressStringgetStreetNumber()The street numberStringgetType()The type of address (e.g.voidsetCity(String city)Sets the cityvoidsetCountry(String country)Sets the countryvoidsetPostalCode(String postalCode)Sets the postal or zip codevoidsetPostalScheme(ClassificationScheme scheme)Set a user-defined postal scheme for codifying the attributes of PostalAddressvoidsetStateOrProvince(String stateOrProvince)Sets the state or provincevoidsetStreet(String street)Sets the street addressvoidsetStreetNumber(String streetNumber)Sets the street numbervoidsetType(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
-
-
-
-
Method Detail
-
getStreet
public String getStreet() throws JAXRException
The street address- Specified by:
getStreetin interfacePostalAddress- 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:
setStreetin interfacePostalAddress- 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:
getStreetNumberin interfacePostalAddress- 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:
setStreetNumberin interfacePostalAddress- 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:
getCityin interfacePostalAddress- 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:
setCityin interfacePostalAddress- 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:
getStateOrProvincein interfacePostalAddress- 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:
setStateOrProvincein interfacePostalAddress- 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:
getPostalCodein interfacePostalAddress- 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:
setPostalCodein interfacePostalAddress- 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:
getCountryin interfacePostalAddress- 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:
setCountryin interfacePostalAddress- 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:
getTypein interfacePostalAddress- 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:
setTypein interfacePostalAddress- 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:
getPostalSchemein interfacePostalAddress- 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:
setPostalSchemein interfacePostalAddress- Parameters:
scheme- the user defined postal scheme.- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
-