Returns the value mapped by {@code name} if it exists and is an int or can be
coerced to an int.
@param name the name of the property
@return the value
@throws JSONException if the mapping doesn't exist or cannot be coerced to an int.
543764
public int getInt(String name) throws JSONException {
		Object object = get(name);
		Integer result = JSON.toInteger(object);
		if (result == null) {
			throw JSON.typeMismatch(name, object, "int");
		}
		return result;
	}
13904
public JsonArray optJsonArray(String name) {
        JsonElement el = null;
        try {
            el = get(name);
        } catch (JsonException e) {
            return null;
        }
        if (!el.isJsonArray()) {
            return null;
        }
        return el.asJsonArray();
    }
352459
public Object get(String name){
        return RequestContext.getHttpRequest().getSession(true).getAttribute(name);
    }
539346
public JsonObject optJsonObject(String name) {
        JsonElement el = null;
        try {
            el = get(name);
        } catch (JsonException e) {
            return null;
        }
        if (!el.isJsonObject()) {
            return null;
        }
        return el.asJsonObject();
    }
324801
public V get(String name) {
        V rc = null;
        K key = getKey(name);
        if (null != key) {
            rc = get(key);
        }
        return rc;
    }
184615
public JsonArray getJsonArray(String name) throws JsonException {
        JsonElement el = get(name);
        if (!el.isJsonArray()) {
            throw Util.typeMismatch(name, el, "JsonArray");
        }
        return el.asJsonArray();
    }
848900
@Override
    public Object getMember(String name) {
        switch (name) {
            case "description":
                return F_description;
            case "offsetDesc":
                return F_offsetDesc;
        }
        return super.getMember(name);
    }
74225
public JSONArray getJSONArray(String name) throws JSONException {
		Object object = get(name);
		if (object instanceof JSONArray) {
			return (JSONArray) object;
		}
		else {
			throw JSON.typeMismatch(name, object, "JSONArray");
		}
	}
412656
public String get(String name) {
        Parameter param = parameters.get(name);
        if (param != null)
            return param.value;
        else
            return null;
    }
536582
public boolean isNull(String name) {
        JsonElement value = nameValuePairs.get(name);
        return value.isNull();
    }
267331
@Override
    public Object getMember(String name) {
        switch (name) {
            case "toJSON":
                return F_toJSON;
            case "toString":
                return F_toString;
            case "valueOf":
                return F_valueOf;
            case "getJavaObject":
                return F_getJavaObject;
        }
        return null;
//        throw new RuntimeException(getClassName() + "." + name + " is not defined");
    }
36110
@Override
  public int getIntProperty(final String name) throws OptionsException {
    String val = getStringProperty(name);

    try {
      return Integer.valueOf(val).intValue();
    } catch (Throwable t) {
      throw new OptionsException("org.bedework.calenv.bad.option.value");
    }
  }
700996
public String getValue(String name) {
        return System.getProperty(name, _map.get(name));
    }
141189
@Override
    public Object getMember(String name) {
        switch (name) {
            case "format":
                return F_format;
            case "schema":
                return F_schema;
            case "option":
                return F_option;
            case "load":
                return F_load;
            case "json":
                return F_json;
            case "csv":
                return F_csv;
            case "parquet":
                return F_parquet;
            case "text":
                return F_text;
        }
        return super.getMember(name);
    }
957044
public @NotNull <T> T get(@NotNull String name, @NotNull T defaultValue) {
    @Nullable
    @SuppressWarnings("unchecked")
    T value = get(name, (Class<T>)defaultValue.getClass());
    if (value != null) {
      return value;
    }
    else {
      return defaultValue;
    }
  }
1023939
public JSONObject put(String name, long value) throws JSONException {
        nameValuePairs.put(checkName(name), value);
        return this;
    }
838731
public Object getProperty(String name) {
		if (!StringUtils.isBlank(name)) {
			return getProperties().get(name);
		}
		return null;
	}