|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TelephoneNumber
A simple re-usable entity class that defines attributes of a telephone number.
Method Summary | |
---|---|
String |
getAreaCode()
Gets the area code. |
String |
getCountryCode()
Gets the country code. |
String |
getExtension()
Gets the internal extension. |
String |
getNumber()
Gets the telephone number suffix, not including the country or area code. |
String |
getType()
The type of telephone number (for example, "fax"). |
String |
getUrl()
Gets the URL that can dial this number electronically. |
void |
setAreaCode(String areaCode)
Sets the area code. |
void |
setCountryCode(String countryCode)
Sets country code. |
void |
setExtension(String extension)
Sets the internal extension. |
void |
setNumber(String number)
Sets the telephone number suffix, not including the country or area code. |
void |
setType(String type)
Sets the type of telephone number (for example, "fax"). |
void |
setUrl(String url)
Sets the URL that can dial this number electronically. |
Method Detail |
---|
String getCountryCode() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getAreaCode() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getNumber() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getExtension() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getUrl() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorString getType() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorvoid setCountryCode(String countryCode) throws JAXRException
countryCode
- the country code
JAXRException
- If the JAXR provider encounters an internal errorvoid setAreaCode(String areaCode) throws JAXRException
areaCode
- the area code
JAXRException
- If the JAXR provider encounters an internal errorvoid setNumber(String number) throws JAXRException
number
- the telephone number
JAXRException
- If the JAXR provider encounters an internal errorvoid setExtension(String extension) throws JAXRException
extension
- the internal extension number
JAXRException
- If the JAXR provider encounters an internal errorvoid setUrl(String url) throws JAXRException
url
- the URL string
JAXRException
- If the JAXR provider encounters an internal errorvoid setType(String type) throws JAXRException
type
- the type for this TelephoneNumber, which is an arbitrary String
JAXRException
- If the JAXR provider encounters an internal error
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.