Package gov.nist.javax.sip.address

Examples of gov.nist.javax.sip.address.TelephoneNumber


    }

    private TelephoneNumber local_phone_number( boolean inBrackets ) throws ParseException {
        if (debug)
            dbg_enter("local_phone_number");
        TelephoneNumber tn = new TelephoneNumber();
        tn.setGlobal(false);
        NameValueList nv = null;
        String b = null;
        try {
            b = local_number();
            tn.setPhoneNumber(b);
            if (lexer.hasMoreChars()) {
                Token tok = this.lexer.peekNextToken();
                switch (tok.getTokenType()) {
                    case SEMICOLON:
                        {
                          if (inBrackets) {
                            this.lexer.consume(1);
                            nv = tel_parameters();
                            tn.setParameters(nv);
                          }
                            break;
                        }
                    default :
                        {
View Full Code Here


     * @return a parsed tel url structure.
     */
    public TelURLImpl telURL( boolean inBrackets ) throws ParseException {
        lexer.match(TokenTypes.TEL);
        lexer.match(':');
        TelephoneNumber tn = this.parseTelephoneNumber(inBrackets);
        TelURLImpl telUrl = new TelURLImpl();
        telUrl.setTelephoneNumber(tn);
        return telUrl;

    }
View Full Code Here

   * Parser for telephone subscriber.
   *
   * @return the parsed telephone number.
   */
  public final TelephoneNumber parseTelephoneNumber() throws ParseException {
    TelephoneNumber tn;

    if (debug)
      dbg_enter("telephone_subscriber");
    lexer.selectLexer("charLexer");
    try {
View Full Code Here

  private final TelephoneNumber global_phone_number() throws ParseException {
    if (debug)
      dbg_enter("global_phone_number");
    try {
      TelephoneNumber tn = new TelephoneNumber();
      tn.setGlobal(true);
      NameValueList nv = null;
      this.lexer.match(PLUS);
      String b = base_phone_number();
      tn.setPhoneNumber(b);
      if (lexer.hasMoreChars()) {
        char tok = lexer.lookAhead(0);
        if (tok == ';') {
          this.lexer.consume(1);
          nv = tel_parameters();
          tn.setParameters(nv);
        }
      }
      return tn;
    } finally {
      if (debug)
View Full Code Here

  }

  private TelephoneNumber local_phone_number() throws ParseException {
    if (debug)
      dbg_enter("local_phone_number");
    TelephoneNumber tn = new TelephoneNumber();
    tn.setGlobal(false);
    NameValueList nv = null;
    String b = null;
    try {
      b = local_number();
      tn.setPhoneNumber(b);
      if (lexer.hasMoreChars()) {
        Token tok = this.lexer.peekNextToken();
        switch (tok.getTokenType()) {
          case SEMICOLON :
            {
              this.lexer.consume(1);
              nv = tel_parameters();
              tn.setParameters(nv);
              break;
            }
          default :
            {
              break;
View Full Code Here

   * @return a parsed tel url structure.
   */
  public TelURLImpl telURL() throws ParseException {
    lexer.match(TokenTypes.TEL);
    lexer.match(':');
    TelephoneNumber tn = this.parseTelephoneNumber();
    TelURLImpl telUrl = new TelURLImpl();
    telUrl.setTelephoneNumber(tn);
    return telUrl;

  }
View Full Code Here

     *
     * @return the parsed telephone number.
     */
    public final TelephoneNumber parseTelephoneNumber( boolean inBrackets )
      throws ParseException {
        TelephoneNumber tn;

        if (debug)
            dbg_enter("telephone_subscriber");
        lexer.selectLexer("charLexer");
        try {
View Full Code Here

    private final TelephoneNumber global_phone_number( boolean inBrackets ) throws ParseException {
        if (debug)
            dbg_enter("global_phone_number");
        try {
            TelephoneNumber tn = new TelephoneNumber();
            tn.setGlobal(true);
            NameValueList nv = null;
            this.lexer.match(PLUS);
            String b = base_phone_number();
            tn.setPhoneNumber(b);
            if (lexer.hasMoreChars()) {
                char tok = lexer.lookAhead(0);
                if (tok == ';' && inBrackets) {
                    this.lexer.consume(1);
                    nv = tel_parameters();
                    tn.setParameters(nv);
                }
            }
            return tn;
        } finally {
            if (debug)
View Full Code Here

    }

    private TelephoneNumber local_phone_number( boolean inBrackets ) throws ParseException {
        if (debug)
            dbg_enter("local_phone_number");
        TelephoneNumber tn = new TelephoneNumber();
        tn.setGlobal(false);
        NameValueList nv = null;
        String b = null;
        try {
            b = local_number();
            tn.setPhoneNumber(b);
            if (lexer.hasMoreChars()) {
                Token tok = this.lexer.peekNextToken();
                switch (tok.getTokenType()) {
                    case SEMICOLON:
                        {
                          if (inBrackets) {
                            this.lexer.consume(1);
                            nv = tel_parameters();
                            tn.setParameters(nv);
                          }
                            break;
                        }
                    default :
                        {
View Full Code Here

     * @return a parsed tel url structure.
     */
    public TelURLImpl telURL( boolean inBrackets ) throws ParseException {
        lexer.match(TokenTypes.TEL);
        lexer.match(':');
        TelephoneNumber tn = this.parseTelephoneNumber(inBrackets);
        TelURLImpl telUrl = new TelURLImpl();
        telUrl.setTelephoneNumber(tn);
        return telUrl;

    }
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.address.TelephoneNumber

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.