Gets a class property via a string property name.

@param pName        - the property name
@param defaultValue - the default property value
@return a {@link Class} property
325390
public Class<?> getClass(String pName, Class<?> defaultValue) {
        String pValue = _properties.getProperty(pName);
        return parseClass(pName, pValue, defaultValue);
    }
50613
public static float getSystemPropertyAsFloat(String name, float defaultValue) {
        final String value = getSystemProperty(name, null);
        if (value != null) {
            try {
                return Float.parseFloat(value);
            } catch (Throwable exception) {
                //
            }
        }
        return defaultValue;
    }
1326205
public static String getProperty(Properties props, String propertyName, String defaultValue) {
        String value = props.getProperty(propertyName, defaultValue).trim();
        if (value.isEmpty()) {
            throw new IllegalArgumentException(
                    "Property " + propertyName + " is missing in Kinesis importer configuration.");
        }
        return value;
    }
803885
public String getStringProperty(String propertyName) {
        Object value = this.properties.get(propertyName);
        if (null != value && value instanceof String) {
            return (String) value;
        }
        return null;
    }
1106501
public String getProperty(String key, String defaultValue) {
        return mProperties.getProperty(key, defaultValue);
    }
168541
public String getProperty(String key, String defaultValue) {
        String val = properties.get(key);

        if (val == null) {
            val = defaultValue;
        }

        return val;
    }
1129800
@Override
    public <T> T get(String name, T defaultValue) {
        if (!containsKey(name)) {
            return defaultValue;
        }
        return get(name);
    }
338633
public Collection<Object> getPropertyOrDefault(final String name, final Collection<Object> defaultValues) {
        if (this.properties.containsKey(name)) {
            return this.properties.get(name);
        }
        return defaultValues;
    }
650148
public static String getProperty(File file, String key, String defaultValue) {
		String property = null;
		try {
			property = PropertiesFactory.load(file).getProperty(key);
		} catch (IOException e) {}
		return property == null ? defaultValue : property;
	}
1295569
public static String getSystemProperty(String name, String defaultValue) {
        String value;
        value = System.getProperty(name, null);
        if (value != null) {
            return value;
        }
        value = System.getenv(name);
        if (value != null) {
            return value;
        }
        return defaultValue;
    }
617119
public Charset getCharsetProperty(final String name, final Charset defaultValue) {
        final String prop = getStringProperty(name);
        try {
            return prop == null ? defaultValue : Charset.forName(prop);
        } catch (UnsupportedCharsetException e) {
            LowLevelLogUtil.logException("Unable to get Charset '" + name + "', using default " + defaultValue, e);
            return defaultValue;
        }
    }
1193172
public String getValue(String name) {
	    	Properties properties = loadProperties();
	    	return (String) properties.getProperty(name);
    }
974501
public static String getString(String name, String defaultVal){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getString(name);
        } else {
            return defaultVal;
        }
    }
676099
public String getString(String name, String defaultValue) {
        String value = getProperties().getProperty(name, defaultValue);
        value = overrides.getProperty(name, value);

        return value;
    }
127835
public int getInt(String pName, int defaultValue) {
        String pValue = _properties.getProperty(pName);
        return parseInt(pName, pValue, defaultValue);
    }
1100461
public static String getProperty(String name) {
        if (propertyProvider == null) {
            initPropertyProvider();
        }
        
        return propertyProvider.getProperty(name);
    }
60926
public static boolean getSystemPropertyAsBoolean(String name, boolean defaultValue) {
        final String value = getSystemProperty(name, null);
        if (value != null) {
            try {
                return Boolean.parseBoolean(value);
            } catch (Throwable exception) {
                //
            }
        }
        return defaultValue;
    }