javax.xml.registry.infomodel

Interface TelephoneNumber


  • public interface TelephoneNumber
    A simple re-usable entity class that defines attributes of a telephone number.
    Author:
    Farrukh S. Najmi
    • Method Detail

      • getCountryCode

        String getCountryCode()
                       throws JAXRException
        Gets the country code. Default is an empty String.

        Capability Level: 1
        Returns:
        the country code
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getAreaCode

        String getAreaCode()
                    throws JAXRException
        Gets the area code. Default is an empty String.

        Capability Level: 1
        Returns:
        the area code
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getNumber

        String getNumber()
                  throws JAXRException
        Gets the telephone number suffix, not including the country or area code. Default is an empty String.

        Capability Level: 0
        Returns:
        the telephone number
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getExtension

        String getExtension()
                     throws JAXRException
        Gets the internal extension. Default is an empty String.

        Capability Level: 1
        Returns:
        the internal extension number
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getUrl

        String getUrl()
               throws JAXRException
        Gets the URL that can dial this number electronically. Default is a NULL String.

        Capability Level: 1
        Returns:
        the url
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getType

        String getType()
                throws JAXRException
        The type of telephone number (for example, "fax"). Any String would do.

        Capability Level: 0
        Returns:
        the type for this TelephoneNumber, which is an arbitrary String
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setCountryCode

        void setCountryCode(String countryCode)
                     throws JAXRException
        Sets country code.

        Capability Level: 1
        Parameters:
        countryCode - the country code
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setAreaCode

        void setAreaCode(String areaCode)
                  throws JAXRException
        Sets the area code.

        Capability Level: 1
        Parameters:
        areaCode - the area code
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setNumber

        void setNumber(String number)
                throws JAXRException
        Sets the telephone number suffix, not including the country or area code.

        Capability Level: 0
        Parameters:
        number - the telephone number
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setExtension

        void setExtension(String extension)
                   throws JAXRException
        Sets the internal extension.

        Capability Level: 1
        Parameters:
        extension - the internal extension number
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setUrl

        void setUrl(String url)
             throws JAXRException
        Sets the URL that can dial this number electronically.

        Capability Level: 1
        Parameters:
        url - the URL string
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setType

        void setType(String type)
              throws JAXRException
        Sets the type of telephone number (for example, "fax"). Any String will do.

        Capability Level: 0
        Parameters:
        type - the type for this TelephoneNumber, which is an arbitrary String
        Throws:
        JAXRException - If the JAXR provider encounters an internal error

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Version en cache

21/08/2025 17:06:23 Cette version de la page est en cache (à la date du 21/08/2025 17:06:23) afin d'accélérer le traitement.
Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.

Document créé le 18/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/xml/registry/infomodel/TelephoneNumber.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, TelephoneNumber (Java(TM) EE 7 Specification APIs)

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.