Class VCard.TelephoneNumber

  • Enclosing class:
    VCard

    public static class VCard.TelephoneNumber
    extends Object
    Represents a telephone number.
    • Constructor Summary

      Constructors 
      Constructor Description
      TelephoneNumber​(String number, boolean preferred)  
      TelephoneNumber​(String number, boolean preferred, boolean home, boolean work)  
      TelephoneNumber​(String number, boolean preferred, boolean home, boolean work, boolean message, boolean voice, boolean fax, boolean cell, boolean video, boolean pager, boolean bbs, boolean modem, boolean pcs, boolean isdn)
      Creates a full telephone number object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getNumber()
      Gets the actual telephone number.
      boolean isBbs()
      Indicates a bulletin board system telephone number.
      boolean isCell()
      Indicates a cellular telephone number.
      boolean isFax()
      Indicates a facsimile telephone telephone number.
      boolean isIsdn()
      Indicates an ISDN service telephone number.
      boolean isModem()
      Indicates a MODEM connected telephone number.
      boolean isMsg()
      Indicates the telephone number has voice messaging support.
      boolean isPager()
      Indicates a paging device telephone number.
      boolean isPcs()
      Indicates a personal communication services telephone number.
      boolean isVideo()
      Indicates a video conferencing telephone number.
      boolean isVoice()
      Indicates a voice telephone number.
      void setBbs​(boolean bbs)
      Indicates a bulletin board system telephone number.
      void setCell​(boolean cell)
      Indicates a cellular telephone number.
      void setFax​(boolean fax)
      Indicates a facsimile telephone telephone number.
      void setIsdn​(boolean isdn)
      Indicates an ISDN service telephone number.
      void setModem​(boolean modem)
      Indicates a MODEM connected telephone number.
      void setMsg​(boolean msg)
      Sets support for voice messaging.
      void setNumber​(String number)
      Sets the actual telephone number.
      void setPager​(boolean pager)
      Indicates a paging device telephone number.
      void setPcs​(boolean pcs)
      Indicates a personal communication services telephone number.
      void setVideo​(boolean video)
      Indicates a video conferencing telephone number.
      void setVoice​(boolean voice)
      Indicates a voice telephone number.
    • Constructor Detail

      • TelephoneNumber

        public TelephoneNumber​(String number,
                               boolean preferred)
      • TelephoneNumber

        public TelephoneNumber​(String number,
                               boolean preferred,
                               boolean home,
                               boolean work)
      • TelephoneNumber

        public TelephoneNumber​(String number,
                               boolean preferred,
                               boolean home,
                               boolean work,
                               boolean message,
                               boolean voice,
                               boolean fax,
                               boolean cell,
                               boolean video,
                               boolean pager,
                               boolean bbs,
                               boolean modem,
                               boolean pcs,
                               boolean isdn)
        Creates a full telephone number object.
        Parameters:
        number - The telephone number.
        preferred - Indicates a preferred number.
        home - Indicates a home number.
        work - Indicates a work number.
        message - Indicates the telephone number has voice messaging support.
        voice - Indicates a voice telephone number.
        fax - Indicates a facsimile telephone number.
        cell - Indicates a cellular telephone number.
        video - Indicates a video conferencing telephone number.
        pager - Indicates a paging device telephone number.
        bbs - Indicates a bulletin board system telephone number.
        modem - Indicates a MODEM connected telephone number.
        pcs - Indicates a personal communication services telephone number.
        isdn - Indicates an ISDN service telephone number.
    • Method Detail

      • isVoice

        public boolean isVoice()
        Indicates a voice telephone number.
        Returns:
        The value.
        See Also:
        setVoice(boolean)
      • setVoice

        public void setVoice​(boolean voice)
        Indicates a voice telephone number.
        Parameters:
        voice - The value.
        See Also:
        isVoice()
      • isFax

        public boolean isFax()
        Indicates a facsimile telephone telephone number.
        Returns:
        The value.
        See Also:
        setFax(boolean)
      • setFax

        public void setFax​(boolean fax)
        Indicates a facsimile telephone telephone number.
        Parameters:
        fax - The value.
        See Also:
        isFax()
      • isCell

        public boolean isCell()
        Indicates a cellular telephone number.
        Returns:
        The value.
        See Also:
        setCell(boolean)
      • setCell

        public void setCell​(boolean cell)
        Indicates a cellular telephone number.
        Parameters:
        cell - The value.
        See Also:
        isCell()
      • isVideo

        public boolean isVideo()
        Indicates a video conferencing telephone number.
        Returns:
        The value.
        See Also:
        setVideo(boolean)
      • setVideo

        public void setVideo​(boolean video)
        Indicates a video conferencing telephone number.
        Parameters:
        video - The value.
        See Also:
        isVideo()
      • isPager

        public boolean isPager()
        Indicates a paging device telephone number.
        Returns:
        The value.
        See Also:
        setPager(boolean)
      • setPager

        public void setPager​(boolean pager)
        Indicates a paging device telephone number.
        Parameters:
        pager - The value.
        See Also:
        ()
      • isBbs

        public boolean isBbs()
        Indicates a bulletin board system telephone number.
        Returns:
        The value.
        See Also:
        setBbs(boolean)
      • setBbs

        public void setBbs​(boolean bbs)
        Indicates a bulletin board system telephone number.
        Parameters:
        bbs - The value.
        See Also:
        isBbs()
      • isModem

        public boolean isModem()
        Indicates a MODEM connected telephone number.
        Returns:
        The value.
        See Also:
        setModem(boolean)
      • setModem

        public void setModem​(boolean modem)
        Indicates a MODEM connected telephone number.
        Parameters:
        modem - The value.
        See Also:
        isModem()
      • isPcs

        public boolean isPcs()
        Indicates a personal communication services telephone number.
        Returns:
        The value.
        See Also:
        setPcs(boolean)
      • setPcs

        public void setPcs​(boolean pcs)
        Indicates a personal communication services telephone number.
        Parameters:
        pcs - The value.
        See Also:
        isPcs()
      • isIsdn

        public boolean isIsdn()
        Indicates an ISDN service telephone number.
        Returns:
        The value.
        See Also:
        setIsdn(boolean)
      • setIsdn

        public void setIsdn​(boolean isdn)
        Indicates an ISDN service telephone number.
        Parameters:
        isdn - The value.
        See Also:
        isIsdn()
      • isMsg

        public boolean isMsg()
        Indicates the telephone number has voice messaging support.
        Returns:
        The value.
        See Also:
        setMsg(boolean)
      • setMsg

        public void setMsg​(boolean msg)
        Sets support for voice messaging.
        Parameters:
        msg - The value.
        See Also:
        isMsg()
      • getNumber

        public String getNumber()
        Gets the actual telephone number.
        Returns:
        The telephone number.
        See Also:
        setNumber(String)
      • setNumber

        public void setNumber​(String number)
        Sets the actual telephone number.
        Parameters:
        number - The telephone number.
        See Also:
        getNumber()