TelephoneNumber | javax.xml.registry.infomodel |
JAXR 1.0; JWSDP 1.0, J2EE 1.4 |
public interface TelephoneNumber { // Property Accessor Methods (by property name) public abstract String getAreaCode( ) throws javax.xml.registry.JAXRException; //L1 public abstract void setAreaCode(String areaCode ) throws javax.xml.registry.JAXRException; //L1 public abstract String getCountryCode( ) throws javax.xml.registry.JAXRException; //L1 public abstract void setCountryCode(String countryCode ) throws javax.xml.registry.JAXRException; //L1 public abstract String getExtension( ) throws javax.xml.registry.JAXRException; //L1 public abstract void setExtension(String extension ) throws javax.xml.registry.JAXRException; //L1 public abstract String getNumber( ) throws javax.xml.registry.JAXRException; //L0 public abstract void setNumber(String number ) throws javax.xml.registry.JAXRException; //L0 public abstract String getType( ) throws javax.xml.registry.JAXRException; //L0 public abstract void setType(String type ) throws javax.xml.registry.JAXRException; //L0 public abstract String getUrl( ) throws javax.xml.registry.JAXRException; //L1 public abstract void setUrl(String url ) throws javax.xml.registry.JAXRException; //L1 }
The TelephoneNumber interface represents the telephone number of a user or an organization. Create one or more TelephoneNumber s using the LifeCycleManager createTelephoneNumber method and then add them, as a group , to either a User or an Organization object by calling their setTelephoneNumbers( ) method.
The functionality provided by this interface depends on the JAXR provider. A level 0 provider implements a type field, which is set to an arbitrary value such as "Home," "Office," or "Mobile," and a single string to hold the number as dialed , which can be obtained using the getNumber( ) method. A level 1 registry provider adds to this the ability to specify a URL that can dial the telephone number automatically, and the ability to get and set each field of the number separately using methods such as getCountryCode( ) , getExtension , and so on. In this case, the value returned by getNumber( ) is the local part of the number. No validity checking is performed on the content of this object.
javax.xml.registry.LifeCycleManager.createTelephoneNumber( )