Examples of NameValue


Examples of gov.nist.core.NameValue

      }
      if (pname.length() == 0 &&
        ( pvalue == null ||
        pvalue.length() == 0))
        return null;
      else return new NameValue(pname, pvalue, isFlagParam);
    } finally {
      if (debug)
        dbg_leave("uriParam");
    }
  }
View Full Code Here

Examples of gov.nist.core.NameValue

  private NameValueList tel_parameters() throws ParseException {
    NameValueList nvList = new NameValueList();

    // JvB: Need to handle 'phone-context' specially
    // 'isub' (or 'ext') MUST appear first, but we accept any order here
    NameValue nv;
    while ( true ) {
      String pname = paramNameOrValue();

      // Handle 'phone-context' specially, it may start with '+'
      if ( pname.equalsIgnoreCase("phone-context")) {
        nv = phone_context();
      } else {
        if (lexer.lookAhead(0) == '=') {
          lexer.consume(1);
          String value = paramNameOrValue();
          nv = new NameValue( pname, value, false );
        } else {
          nv = new NameValue( pname, "", true )// flag param
        }
      }
      nvList.set( nv );

      if ( lexer.lookAhead(0) == ';' ) {
View Full Code Here

Examples of gov.nist.core.NameValue

      Token t = lexer.match( Lexer.ID )// more broad than allowed
      value = t.getTokenValue();
    } else {
      throw new ParseException( "Invalid phone-context:" + la , -1 );
    }
    return new NameValue( "phone-context", value, false );
  }
View Full Code Here

Examples of gov.nist.core.NameValue

      lexer.selectLexer("charLexer");
      while (lexer.hasMoreChars()) {
        if (lexer.lookAhead(0) != ';')
          break;
        lexer.consume(1);
        NameValue parms = uriParam();
        if (parms != null) retval.setUriParameter(parms);
      }

      if (lexer.hasMoreChars() && lexer.lookAhead(0) == '?') {
        lexer.consume(1);
        while (lexer.hasMoreChars()) {
          NameValue parms = qheader();
          retval.setQHeader(parms);
          if (lexer.hasMoreChars() && lexer.lookAhead(0) != '&')
            break;
          else
            lexer.consume(1);
View Full Code Here

Examples of gov.nist.core.NameValue

   */
  protected NameValue qheader() throws ParseException {
    String name = lexer.getNextToken('=');
    lexer.consume(1);
    String value = hvalue();
    return new NameValue(name, value, false);

  }
View Full Code Here

Examples of gov.nist.core.NameValue

  protected void parseParameter(PChargingVector chargingVector) throws ParseException {
   
    if (debug)
      dbg_enter("parseParameter");
    try {
      NameValue nv = this.nameValue('=');
      chargingVector.setParameter(nv);
    } finally {
      if (debug)
        dbg_leave("parseParameter");
    }
View Full Code Here

Examples of gov.nist.core.NameValue

   
    if (debug)
      dbg_enter("parseParameter");
    try {
     
      NameValue nv = this.nameValue('=');

      chargingFunctionAddresses.setParameter(nv);
     
     
    } finally {
View Full Code Here

Examples of gov.nist.core.NameValue

    throws ParseException
  {
    if (debug)
      dbg_enter("parseParameter");
    try {
      NameValue nv = this.nameValue('=');
      header.setParameter(nv);
    } finally {
      if (debug)
        dbg_leave("parseParameter");
    }
View Full Code Here

Examples of gov.nist.core.NameValue

      this.lexer.SPorHT();
      while (lexer.lookAhead(0) == ';') {
        this.lexer.match(';');
        this.lexer.SPorHT();

        NameValue nv = super.nameValue('=');
        accessNetworkInfo.setParameter(nv);
        this.lexer.SPorHT();
      }
      this.lexer.SPorHT();
      this.lexer.match('\n');
View Full Code Here

Examples of io.mola.galimatias.NameValue

    @Override
    public List<PotentialAssignment> getValueSources(ParameterSignature sig) {
        List<PotentialAssignment> res = new ArrayList<PotentialAssignment>();
        for (final String name : values) {
            for (final String value : values) {
                final NameValue nameValue = new NameValue(name, value);
                res.add(PotentialAssignment.forValue(nameValue.toString(), nameValue));
            }
        }
        return res;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.