Puts the token value into a Bundle.

@param bundle
A Bundle in which the token value should be stored.
@param value
The String representing the token value, or null.

@throws NullPointerException if the passed in Bundle or token value are null
165660
public static void putToken(Bundle bundle, String value) {
        Validate.notNull(bundle, "bundle");
        Validate.notNull(value, "value");
        bundle.putString(TOKEN_KEY, value);
    }
1082068
public void init(ResourceBundlesHandler bundler, Boolean useRandomParam) {

		this.bundler = bundler;
		if (useRandomParam == null) {
			this.useRandomParam = bundler.getConfig().isDebugUseRandomParam();
		} else {
			this.useRandomParam = useRandomParam;
		}
	}
687780
public void addMessage(String key, String value) {

        if (m_bundleMap != null) {
            m_bundleMap.put(key, value);
        }
    }
559295
public void put(String string,Object value)
    {
	put((String)null, new MyWrapper(string), value);
    }
351713
public Bundler putSerializable(String key, Serializable value) {
    bundle.putSerializable(key, value);
    return this;
  }
348144
@java.lang.SuppressWarnings({ "ConstantConditions" })
    public void setString(int tagType, @NotNull String value)
    {
        if (value == null)
            throw new NullPointerException("cannot set a null String");
        setObject(tagType, value);
    }
1131581
public <T> void put(@NonNull String key, @NonNull T value, @NonNull TypeToken<T> typeTokenOfT) {
    Preconditions.checkNotNull(key, KEY_IS_NULL);
    Preconditions.checkNotNull(value, VALUE_IS_NULL);
    Preconditions.checkNotNull(typeTokenOfT, TYPE_TOKEN_OF_T_IS_NULL);

    if (!accessorProvider.getAccessors().containsKey(value.getClass())) {
      String jsonValue = jsonConverter.toJson(value, typeTokenOfT.getType());
      editor.putString(key, String.valueOf(jsonValue)).apply();
      return;
    }

    Class<?> classOfValue = value.getClass();

    for (Map.Entry<Class<?>, Accessor<?>> entry : accessorProvider.getAccessors().entrySet()) {
      if (classOfValue.equals(entry.getKey())) {
        @SuppressWarnings("unchecked") Accessor<T> accessor = (Accessor<T>) entry.getValue();
        accessor.put(key, value);
      }
    }
  }
208915
public void setNullValue(String nullValue) {
        this.nullValue = nullValue;
        this.nullValueChars = nullValue.toCharArray();
        this.nullValueBytes = toBytes(nullValue, nullValue);
    }
771225
<T> void setValueInternal(String key, T value) {
		if (key == null) {
			throw new NullPointerException("Key must not be null.");
		}
		if (value == null) {
			throw new NullPointerException("Value must not be null.");
		}

		synchronized (this.confData) {
			this.confData.put(key, value);
		}
	}
1167566
public void startBundle(Bundle bundle)
    {
        if (bundle != null)
            if ((bundle.getState() != Bundle.ACTIVE) && (bundle.getState() != Bundle.STARTING))
        {
            try {
                bundle.start();
            } catch (BundleException e) {
                e.printStackTrace();
            }
        }
    }
935231
public static String bundleToString(Bundle bundle) {
    if (bundle == null) {
      return "null";
    }

    StringBuilder b = new StringBuilder(128);
    b.append("Bundle[{");
    bundleToShortString(bundle, b);
    b.append("}]");
    return b.toString();
  }
840354
public void setValue(Map<String, Token[]> tokensMap) {
        if (type == null) {
            type = ItemType.MAP;
        }
        if (!isMappableType()) {
            throw new IllegalArgumentException("The type of this item must be 'map' or 'properties'");
        }
        this.tokensMap = tokensMap;
    }
524375
public Trainable put(String key, Trainable value) {
        return bundle.put(key, value);
    }
73459
@XmlElementDecl(namespace = PROV_NS, name = "bundle")
    public JAXBElement<BundleEntity> createBundle(BundleEntity value) {
        return new JAXBElement<BundleEntity>(_Bundle_QNAME, BundleEntity.class, null, value);
    }
581754
public void setValue(String value) {
		contents = new ArrayList();
		contents.add(value);
		if (value.trim().length() > 0) {
			containsSingleString = true;
		}
	}
1031964
public static <T> void bindArguments(T target, Bundle bundle) {
        @SuppressWarnings("unchecked")
        BundleBinding<T> binding = (BundleBinding<T>) getBundleBinding(target.getClass().getClassLoader(), target.getClass());
        if (binding != null) {
            binding.bindArguments(target, bundle);
        }
    }
471624
public static void putExpirationDate(Bundle bundle, Date value) {
        Validate.notNull(bundle, "bundle");
        Validate.notNull(value, "value");
        putDate(bundle, EXPIRATION_DATE_KEY, value);
    }