Returns the value mapped by {@code name}.
@param name the name of the property
@return the value
@throws JSONException if no such mapping exists.
550540
public Object get(String name) throws JSONException {
		Object result = this.nameValuePairs.get(name);
		if (result == null) {
			throw new JSONException("No value for " + name);
		}
		return result;
	}
46443
public JSONObject getJsonConfig(String name) throws IOException, 
                                                       JSONException {
    if (name.endsWith(".xml")) {
      URL url = getResource(MATERIALIZEDJSON);
      if (url != null) {
        InputStream in = url.openStream();
        if (in != null) {
          JSONObject json = instantiateJsonObject(in);
          if (json.has(xmlToThrift(name))) {
            return json.getJSONObject(xmlToThrift(name));
          } 
        }
      }
    }
    return null;
  }
1207636
public JSONArray optJSONArray(String name) {
		Object object = opt(name);
		return object instanceof JSONArray ? (JSONArray) object : null;
	}
828409
public String getString(String name, boolean strict) throws JsonException {
        JsonElement el = get(name);
        String res = null;
        if (strict && !el.isString()) {
            throw Util.typeMismatch(name, el, "string", true);
        }
        res = el.toString();
        if (res == null)
            throw Util.typeMismatch(name, el, "string", strict);
        return res;
    }
269449
public JsonPropertyBuilder<T, P> name(String name) {
		return new JsonPropertyBuilder<T, P>(coderClass, name, null, null);
	}
1023939
public JSONObject put(String name, long value) throws JSONException {
        nameValuePairs.put(checkName(name), value);
        return this;
    }
418489
@Override
    public Object getProperty(String name)
    {
        Object ob = mConfig.getProperty(name);

        if (ob == null) {
            if (name.equals(XMLInputFactory.ALLOCATOR)) {
                // Event allocator not available via J2ME subset...
                return getEventAllocator();
            }
        }
        return ob;
    }
658708
@JsonProperty
  @Override
  public String getName()
  {
    String name = this.name;
    if (Strings.isNullOrEmpty(name)) {
      name = delegate.getName();
    }
    return name;
  }
352459
public Object get(String name){
        return RequestContext.getHttpRequest().getSession(true).getAttribute(name);
    }
61008
public Extension get(String name) throws IOException {
        Extension obj = map.get(name);
        if (obj == null) {
            throw new IOException("No extension found with name " + name);
        }
        return (obj);
    }
757600
@Nullable
  private String getProperty(final String name) {
    assert name != null;
    ensureConfigured();
    return evaluate(System.getProperty(name, props.getProperty(name)));
  }
88767
public JSONObject optJSONObject(String name) {
		Object object = opt(name);
		return object instanceof JSONObject ? (JSONObject) object : null;
	}
155044
@SuppressWarnings("unchecked")
  public <T extends Value<?>> List<T> getList(String name) {
    return (List<T>) getValue(name).get();
  }
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();
    }
693600
public double getDouble(String name) throws JSONException {
		Object object = get(name);
		Double result = JSON.toDouble(object);
		if (result == null) {
			throw JSON.typeMismatch(name, object, "double");
		}
		return result;
	}
613472
public Object get(String key) throws JSONException {
        if(!myHashMap.containsKey(key)) {
            throw new JSONException("JSONObject[" + quote(key) +
                    "] not found.");
        }
        return opt(key);
    }
1147305
@Override
    public String getProperty(String name) {
        loadProperties();
        return properties == null ? null : properties.getProperty(name);
    }