Package javax.xml.registry.infomodel
Interface PostalAddress
- All Superinterfaces:
ExtensibleObject
PostalAddress is a simple re-usable entity class that defines attributes of a postal Address.
- Author:
- Farrukh S. Najmi
-
Method Summary
Modifier and TypeMethodDescriptiongetCity()Returns the city.Returns the country.Returns the postal or zip code.Returns a user-defined postal scheme for codifying the attributes of PostalAddress.Returns the state or province.Returns the street name.Returns the street number.getType()Returns the type of address (for example, "headquarters") as a String.voidSets the city.voidsetCountry(String country) Sets the country.voidsetPostalCode(String postalCode) Sets the postal or zip code.voidsetPostalScheme(ClassificationScheme scheme) Sets a user-defined postal scheme for codifying the attributes of PostalAddress.voidsetStateOrProvince(String stateOrProvince) Sets the state or province.voidSets the street name.voidsetStreetNumber(String streetNumber) Sets the street number.voidSets the type of address (for example, "headquarters") as a String.Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
-
Method Details
-
getStreet
Returns the street name. Default is an empty String.- Capability Level: 0
- Returns:
- the street name
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setStreet
Sets the street name.- Capability Level: 0
- Parameters:
street- the street name- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getStreetNumber
Returns the street number. Default is an empty String.- Capability Level: 0
- Returns:
- the street number
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setStreetNumber
Sets the street number.- Capability Level: 0
- Parameters:
streetNumber- the street number- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getCity
Returns the city. Default is an empty String.- Capability Level: 0
- Returns:
- the city
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setCity
Sets the city.- Capability Level: 0
- Parameters:
city- the city- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getStateOrProvince
Returns the state or province. Default is an empty String.- Capability Level: 0
- Returns:
- the state or province
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setStateOrProvince
Sets the state or province.- Capability Level: 0
- Parameters:
stateOrProvince- the state or province- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getPostalCode
Returns the postal or zip code. Default is an empty String.- Capability Level: 0
- Returns:
- the postal code (e.g. US zip code)
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setPostalCode
Sets the postal or zip code.- Capability Level: 0
- Parameters:
postalCode- the postal code (e.g. US zip code)- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getCountry
Returns the country. Default is an empty String.- Capability Level: 0
- Returns:
- the country
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setCountry
Sets the country.- Capability Level: 0
- Parameters:
country- the country- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getType
Returns the type of address (for example, "headquarters") as a String.- Capability Level: 0
- Returns:
- the type for this PostalAddress. This is an arbitrary String (e.g. "Home", "Office")
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setType
Sets the type of address (for example, "headquarters") as a String.- Capability Level: 0
- Parameters:
type- the type for this PostalAddress. This is an arbitrary String (e.g. "Home", "Office")- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setPostalScheme
Sets a user-defined postal scheme for codifying the attributes of PostalAddress.- Capability Level: 0
- Parameters:
scheme- the user defined postal scheme.- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getPostalScheme
Returns a user-defined postal scheme for codifying the attributes of PostalAddress. If none is defined for this object, then must return the default value returned by RegistryService#getDefaultPostalScheme()- Capability Level: 0
- Returns:
- the user defined postal scheme.
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error- See Also:
-