Gets a value of a static property.
@param fqn The FQN of the class
@param property The name of the static property
@return The value of the static property
483032
public JsonNode getStaticPropertyValue(final String fqn, final String property) {
        ObjectNode req = makeRequest("sget");
        req.put("fqn", fqn);
        req.put("property", property);
        return this.runtime.requestResponse(req).get("value");
    }
1124759
protected Object getMacroBeanValue(Object bean, String property) {

        Object result = null;
        if ((bean != null) && CmsStringUtil.isNotEmptyOrWhitespaceOnly(property)) {
            try {
                PropertyUtilsBean propBean = BeanUtilsBean.getInstance().getPropertyUtils();
                result = propBean.getProperty(bean, property);
            } catch (Exception e) {
                LOG.error("Unable to access property '" + property + "' of '" + bean + "'.", e);
            }
        } else {
            LOG.info("Invalid parameters: property='" + property + "' bean='" + bean + "'.");
        }
        return result;
    }
830895
public JsonObject getAsObject(String property) {
		if (!super.has(property)) {
			super.set(property, new JsonValue(new JsonObject()), false);
		}
		return get(property).getAsObject();
	}
1122895
public final Object getValue(final String id, final String property) {
        final CriteriaBuilder builder = getSession().getCriteriaBuilder();
        final CriteriaQuery<Object> criteria = builder.createQuery(Object.class);
        final Root<PrintJobStatusExtImpl> root = criteria.from(PrintJobStatusExtImpl.class);
        criteria.select(root.get(property));
        criteria.where(builder.equal(root.get("referenceId"), id));
        return getSession().createQuery(criteria).uniqueResult();
    }
891492
@SuppressWarnings("unchecked")
    public static <T> T getPropValue(final Object entity, final String propName) {
        return getPropValue(entity, propName, false);
    }
776328
static Properties getProperties(Instance propertiesInstance) {
        ObjectArrayDump entriesObj = (ObjectArrayDump) propertiesInstance.getValueOfField("table"); // NOI18N
        if (entriesObj != null) {
            Instance defaultsObj = (Instance) propertiesInstance.getValueOfField("defaults"); // NOI18N
            Iterator<Instance> enIt = entriesObj.getValues().iterator();
            Properties props;

            if (defaultsObj != null) {
                props = new Properties(getProperties(defaultsObj));
            } else {
                props = new Properties();
            }
            while (enIt.hasNext()) {
                Instance entry = (Instance) enIt.next();

                for (; entry != null; entry = (Instance) entry.getValueOfField("next")) { // NOI18N
                    Instance key = (Instance) entry.getValueOfField("key"); // NOI18N
                    Instance val = (Instance) entry.getValueOfField("value"); // NOI18N

                    if (key != null) {
                        props.setProperty(getString(key), getString(val));
                    }
                }
            }

            return props;
        }

        return null;
    }
999578
public String getStringValue(String property) {

		final List<JawrConfigManagerMBean> mBeans = getInitializedConfigurationManagers();
		try {

			if (mBeans.size() == 3) {

				if (areEquals(getProperty(jsMBean, property), getProperty(cssMBean, property),
						getProperty(binaryMBean, property))) {

					return getProperty(jsMBean, property);
				} else {
					return NOT_IDENTICAL_VALUES;
				}
			}

			if (mBeans.size() == 2) {
				JawrConfigManagerMBean mBean1 = mBeans.get(0);
				JawrConfigManagerMBean mBean2 = mBeans.get(1);

				if (areEquals(getProperty(mBean1, property), getProperty(mBean2, property))) {
					return getProperty(mBean1, property);
				} else {
					return NOT_IDENTICAL_VALUES;
				}
			}

			JawrConfigManagerMBean mBean1 = mBeans.get(0);

			return getProperty(mBean1, property);

		} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
			return ERROR_VALUE;
		}

	}
786246
public function staticProperty($class, $property, $args = array()) {
		if(!class_exists($class))
			return null;
		if(!property_exists($class, $property))
			return null;
		
		$vars = get_class_vars($class);
		return $vars[$property];
	}
916553
public static Float getFloatProperty(String base, String property,
			boolean required) {
		return getFloatProperty(base + JavaPropertyConstants.PROPERTY_DIVIDER
				+ property, required);
	}
1342635
public static Color getColorProperty(String base, String property) {
		return getColorProperty(base, property, true);
	}
1190546
public <T> Object getBeanProperty(final T bean, final Object property) {
        if (bean != null) {
            @SuppressWarnings("unchecked")
            GetResolver<T> resolver = this.getters.unsafeGet(bean.getClass());
            if (resolver != null) {
                return resolver.get(bean, property);
            }
        }
        return this.resolverManager.get(bean, property);
    }
390459
public float getFloat(String property) {
    return getProperty(property, value -> {
      try {
        return Float.valueOf(value);
      } catch (NumberFormatException e) {
        throw new ConfigurationException("malformed property value: " + property + " must be a float");
      }
    });
  }
941932
public boolean getBoolean(String property) {
    return getProperty(property, value -> {
      switch (value.trim().toLowerCase()) {
        case "true":
        case "1":
          return true;
        case "false":
        case "0":
          return false;
        default:
          throw new ConfigurationException("invalid property value: " + property + " must be a boolean");
      }
    });
  }
574380
public int numValues(String property) {
		int count = 0;
		if (has()) {
			TResult result = queryForValues(property);
			try {
				count = result.getCount();
			} finally {
				result.close();
			}
		}
		return count;
	}
945622
public static Class getPropertyType(Class<?> beanClass, String property){
        Method getter = getGetterMethod(beanClass, property);
        if(getter==null)
            return null;
        else
            return getter.getReturnType();
    }
554532
public String getValue(String property, String language) {
        Multimap<Optional<String>, String> values = properties.get(property);

        if (values == null) {
            return null;
        }

        Iterator<String> it = values.get(Optional.of(language)).iterator();
        return it.hasNext() ? it.next() : null;
    }
689954
public Float getAsFloat(String property) {
		if (super.has(property)) {
			return get(property).getAsFloat();
		}
		return null;
	}