Get the value of the named static property.

@param propName
@param type
@return The property value or null
482388
public <T> T getStaticPropertyValue(String propName, Class<T> type) {
        return ClassPropertyFetcher.getStaticPropertyValue(getClazz(), propName, type);
    }
1116405
public final boolean isPropertyTypeDeclared(String propertyName) {
    StaticTypedSlot slot = getSlot(propertyName);
    return slot == null ? false : !slot.isTypeInferred();
  }
510806
public Object get(String propName) {
        if (propName.equals("uniqueId")) {
            return getUniqueId();
        }
        if (propName.equals("uniqueName")) {
            return getUniqueName();
        }
        if (propName.equals("externalId")) {
            return getExternalId();
        }
        if (propName.equals("externalName")) {
            return getExternalName();
        }
        if (propName.equals("repositoryId")) {
            return getRepositoryId();
        }
        return null;
    }
827307
public static Object getProperty(Object obj, String prop) throws PageException {
	Object rtn = getField(obj, prop, NULL);// NULL is used because the field can contain null as well
	if (rtn != NULL) return rtn;

	char first = prop.charAt(0);
	if (first >= '0' && first <= '9') throw new ApplicationException("there is no property with name [" + prop + "]  found in [" + Caster.toTypeName(obj) + "]");
	return callGetter(obj, prop);

    }
477598
public static <S> Class<? extends S> getSystemPropertyAsClass(Class<S> type, String name) {
        return getSystemPropertyAsClass(type, name, (Class<S>) null);
    }
1081630
public int getProperty(String propName, int defaultValue) {
        String propValue = props.getProperty(propName);
        return (propValue == null) ? defaultValue : Integer.parseInt(propValue);
    }
1257673
public GrProperty getProperty(String propertyName) {
		for (GrProperty prop : getProperties()) {
			if (prop.getName().equals(propertyName))
				return prop;
		}
		return null;
	}
1272019
public String getValue(String propertyName) {
        Property property = super.get(propertyName);
        if (property == null) {
            return null;
        }
        return property.getValue();
    }
711319
@Nullable
    protected static <T> T jsiiStaticGet(final Class<?> nativeClass, final String property, final Class<T> type) {
        String fqn = engine.loadModuleForClass(nativeClass);
        return JsiiObjectMapper.treeToValue(engine.getClient().getStaticPropertyValue(fqn, property), type);
    }
594424
public static <S> Class<? extends S> getSystemPropertyAsClass(Class<S> type, String name, Class<S> defaultValue) {
        final String value = getSystemProperty(name, null);
        if (value != null) {
            try {
                final Class<?> typeInstance = Class.forName(value);
                if (typeInstance != null) {
                    return typeInstance.asSubclass(type);
                }
            } catch (Throwable exception) {
                //
            }
        }
        return defaultValue;
    }
1259470
public String getFromEnvOrSystemProperty(String propName) {

    String val = System.getenv(propName);
    if (val == null)
      val = System.getProperty(propName);
    return val;
  }
1285453
@Override
    public String getProperty(String name) {
        Validate.notNull(name, "Property name can not be null");
        return this.portalProperties.getProperty(name);
    }
712998
public static <S extends Enum<S>> S getSystemPropertyAsEnum(Class<S> type, String name) {
        return getSystemPropertyAsEnum(type, name, null);
    }
496444
public Object get(String propName) {
        if (propName.equals(PROP_IDENTIFIER)) {
            return getIdentifier();
        }
        if (propName.equals(PROP_VIEW_IDENTIFIERS)) {
            return getViewIdentifiers();
        }
        if (propName.equals(PROP_PARENT)) {
            return getParent();
        }
        if (propName.equals(PROP_CHILDREN)) {
            return getChildren();
        }
        if (propName.equals(PROP_GROUPS)) {
            return getGroups();
        }
        if (propName.equals(PROP_CREATE_TIMESTAMP)) {
            return getCreateTimestamp();
        }
        if (propName.equals(PROP_MODIFY_TIMESTAMP)) {
            return getModifyTimestamp();
        }
        if (propName.equals(PROP_ENTITLEMENT_INFO)) {
            return getEntitlementInfo();
        }
        if (propName.equals(PROP_CHANGE_TYPE)) {
            return getChangeType();
        }
        return null;
    }
1269485
public final int getIntProp(Prop propType) {
    PropListItem item = lookupProperty(propType);
    if (item == null) {
      return 0;
    }
    return item.getIntValue();
  }
590209
static ObjectName getObjectName(String type, String name) {
        try {
            return new ObjectName(JMXUtils.class.getPackage().getName() + ":type=" + type + ",name=" + name);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
85232
def get_prop_value(name, props, default=None):
    # type: (str, Dict[str, Any], Any) -> Any
    
    if not props:
        return default

    try:
        return props[name]
    except KeyError:
        return default