Add a value in metadata

@param key The unique key linked to the value (must be lower case)
@param value The metadata value (must contains only ASCII characters)
@throws IllegalArgumentException If the key or value is badly formatted
970623
public void put( String key, String value )
            throws IllegalArgumentException
    {
        if ( !key.matches( "[a-z-]*" ) ) {
            throw new IllegalArgumentException( "The key must contains letters and dash" );
        }
        // Check value is ASCII
        for ( char c : value.toCharArray() ) {
            if ( c < 32 || c > 127 ) {
                throw new IllegalArgumentException( "The metadata value is not ASCII encoded" );
            }
        }
        map.put( key, value );
    }
1148458
public void add(final Param key, final String[] value) {
        if (value != null && value.length > 0) {
            parameters.put(key, toList(value));
        }
    }
1246174
private void add(String key, String value) {
        checkCapacity(size + 1);
        keys[size] = key;
        vals[size] = value;
        size++;
    }
690639
public void put(String key, Integer value) {
		if (this.compiledStatement != null) {
			if (value == null) {
				this.compiledStatement.bindNull(compiledStatementBindIndex++);
			} else {
				compiledStatement.bindLong(compiledStatementBindIndex++, (int) value);
			}
		} else if (values != null) {
			values.put(key, value);
			return;
		}

		names.add(key);
		// values.put(key, value);
		args.add(value);
		valueType.add(ParamType.INTEGER);
	}
346759
public FileIndexBuilder putMetadata(String key, String value) {
        checkIfDestroyed();
        metadata.put(key, value);
        return this;
    }
854905
public void add(String name, Map<?, ?> value) {
		if (value != null) {
			this.content.put(name, value);
		}
	}
469082
public final void put(final String key, final String value) {
        final Property prop = find(key);
        if (prop == null) {
            props.add(new Property(key, null, value));
        } else {
            prop.setValue(value);
        }
    }
62964
@Override
    public void put(String key, String value) throws Exception {
        sb.append('<').append(key).append('>');
        sb.append(XMLUtil.convertToCDATA(value));
        sb.append("</").append(key).append('>');
        
    }
507702
public AnnotatedTextBuilder addGlobalMetaData(AnnotatedText.MetaDataKey key, String value) {
    metaData.put(key, value);
    return this;
  }
482798
public void put(T key, Object value) {
        data.put(key, ensureValueCorrectness(key, value));
    }
880736
public <Metadata> Message<Payload> add(MetadataKey<Metadata> key, Metadata metadata) {
    return new Message<>(payload, metadataMap.plus(key, metadata));
  }
632085
@JsonAnySetter
	public void setAnonymous(String key, Object value) {
		anonymous().put(key, value);
	}
959618
public void setTag(int key, Object value) {
        if (mTag == null) {
            mTag = new SparseArray<>();
        }
        mTag.put(key, value);
    }
277083
public void setRequestMetadata(@NonNull String key, @NonNull String value) {
        prefHelper_.setRequestMetadata(key, value);
    }
1174545
public <T> void set(String key, T value) {
        data.put(key, value);
    }
626722
public RuntimeParameter addParameter(String key, String value)
    {
        RuntimeParameter jp = new RuntimeParameter();
        jp.setJi(this.getId());
        jp.setKey(key);
        jp.setValue(value);
        return jp;
    }
1288558
public @NotNull MediaFormatBuilder property(String key, Object value) {
    if (key == null) {
      throw new IllegalArgumentException("Key argument must not be null.");
    }
    this.properties.put(key, value);
    return this;
  }