Returns the specified integer property from the specified section.
@param pstrSection the INI section name.
@param pstrProp the property to be retrieved.
@return the integer property value.
768996
public Integer getIntegerProperty(String pstrSection, String pstrProp)
    {
        Integer     intRet  = null;
        String      strVal  = null;
        INIProperty objProp = null;
        INISection  objSec  = null;

        objSec = (INISection) this.mhmapSections.get(pstrSection);
        if (objSec != null)
        {
            objProp = objSec.getProperty(pstrProp);
            try
            {
                if (objProp != null)
                {
                    strVal = objProp.getPropValue();
                    if (strVal != null) intRet = new Integer(strVal);
                }
            }
            catch (NumberFormatException NFExIgnore)
            {
            }
            finally
            {
                if (objProp != null) objProp = null;
            }
            objSec = null;
        }
        return intRet;
    }
1232935
public String getTable(String pProperty) {
        String table = getColumn(pProperty);

        if (table != null) {
            int dotIdx = 0;
            if ((dotIdx = table.lastIndexOf(".")) >= 0)
                table = table.substring(0, dotIdx);
            else
                return null;
        }

        return table;
    }
1119744
@Override
	public Integer getPropertyInteger(Class<?> cls, String key,
			Integer aDefault)
	{
		return getPropertyInteger(new StringBuilder(cls.getName()).append(".").append(key).toString(), aDefault);

	}
553536
public static int getIntFromProperty(final String propertyName) {
        try {
            return Integer.parseInt(properties.getProperty(propertyName));
        } catch (NumberFormatException e) {
            log.error("NumberFormatException caught during reading property from properties file: "
                    + e.getMessage());
            return 0;
        }
    }
1363353
@SuppressWarnings("unchecked")
	public <T> T getPropertyValue(ElementDescriptor<T> property)
	{
		if (mProperties == null)
		{
			return null;
		}
		return (T) mProperties.get(property);
	}
475252
public static long getLong(String pStr) {
        if (isEmpty(pStr)) {
            return 0;
        }
        long value = 0;
        try {
            value = Long.parseLong(pStr);
        } catch (NumberFormatException nm) {
        }
        return value;
    }
1189334
@Override
  public final T fromString(final Map<String, Object> pAddParam,
    final String pStrVal) throws Exception {
    if (pStrVal == null || "".equals(pStrVal)) {
      return null;
    }
    T object = this.objectClass.newInstance();
    for (String fldValStr : pStrVal.split(",")) {
      int eqIdx = fldValStr.indexOf("=");
      String fldName = fldValStr.substring(0, eqIdx);
      String cnvrtName = this.fieldConverterNamesHolder.getFor(this.objectClass,
        fldName);
      if (cnvrtName != null) { // e.g. transient field
        IConverterToFromString cnvrt = this.fieldsConvertersFatory
          .lazyGet(null, cnvrtName);
        Method fldSetter = this.settersRapiHolder
          .getFor(this.objectClass, fldName);
        String strVal = fldValStr.substring(eqIdx + 1);
        Object fldVal = cnvrt.fromString(pAddParam, strVal);
        fldSetter.invoke(object, fldVal);
      }
    }
    return object;
  }
877257
private String getValue(Class<?> section, String name) {

		if (section == null || name == null) {
			log.warn("Section or name is null, Section:'" + section
					+ "' name:'" + name + "'");
			return null;
		}

		if (fildes != null && lastModified != fildes.lastModified()) {
			getFileProperties(filePath);
		}

		// Getting the full name
		String propertyName = getPropertyName(section, name);

		// The tryng from file properties
		Object obj = fileProperties.get(propertyName);
		if (obj != null) {
			if (log.isDebugEnabled()){
				log.debug("propertyName:'" + propertyName + "' and value:'" + obj
						  + "' from file:'" + filePath + "'");
			}
			if (ObjectUtils.NULL.equals(obj)) {
				return null;
			} else {
				return (String) obj;
			}
		}

		// Else using the short name into the file properties

		String ret = (String) fileProperties.get(name);
		if (ret != null) {
			return (String) ret;
		}
		// Si es nulo al final se guardara en la cache

		// // try from the default path
		// Properties prop=FilePropertyUtils.getProperties(section);
		// if (prop!=null) {
		// // try the full cualified name
		// ret=prop.getProperty(name);
		// if (ret!=null) {
		// log.debug("propertyName:'"+propertyName+"' from file.prop");
		// fileProperties.put(propertyName,ret);
		// return (String)ret;
		// }
		// }

		// Getting property from system Propertie
		ret = (String) System.getProperty(propertyName);
		if (ret != null) {
			if (log.isDebugEnabled()){
				log.debug("Property name:'" + propertyName
						  + "' found in system properties.");
			}
			return ret;
		}

		// Sets the NULL value to this key
		fileProperties.put(propertyName, ObjectUtils.NULL);

		return null;
	}
1248426
@Override
	public Integer getPropertyInteger(String key, int aDefault)
	{

		return getPropertyInteger(key, Integer.valueOf(aDefault));

	}
209784
public static int getInteger(String pStr, int defval) {
        if (isEmpty(pStr)) return defval;
        try {
            return Integer.parseInt(pStr);
        } catch (NumberFormatException nm) {
            return defval;
        }
    }
1266436
static Integer getInteger(Properties properties, String key, Integer defaultValue) {
		if (properties == null)
			return defaultValue;
		String value = properties.getProperty(key);
		if (value == null || value.isEmpty())
			return defaultValue;
		int intVal;
		try {
			intVal = Integer.parseInt(value);
		} catch (NumberFormatException e) {
			logger.warn("Cannot read property '" + key + "'. Expected integer, but got '" + value + "'. Setting default value = '" + defaultValue + "'", e.getMessage());
			return defaultValue;
		}
		logger.trace("Read property '" + key + "' value '" + intVal + "'");
		return intVal;
	}
997603
public String getProperty(String strProperty)
    {
        String strValue = null;
        if (m_properties != null)
            if (m_properties.get(strProperty) != null)
                strValue = m_properties.get(strProperty).toString();
        if (strValue == null)
        	if (m_sApplet != null)	// Try applet properties if an Applet
            strValue = this.getParameterByReflection(m_sApplet, strProperty);   // Passed in as an applet param?
        return strValue;
    }
1291635
private int getIntProperty(Properties prop, String name) {
        String propertyValue = prop.getProperty(name);
        return Integer.parseInt(propertyValue);
    }
1321238
public String getProperty(String strProperty, String strParams)
    {
        String strValue = null;
        strValue = this.parseArg(strProperty, strParams);
        if (strValue == null)
            strValue = this.getRecordOwner().getProperty(strProperty);
        return strValue;
    }
110229
public String getProperty(String prop)
    {
        // assuming Properties are initialized with this call
        return prop != null ? getProperties().getProperty(prop) : null;
    }
845800
@Override
  public final Integer getInteger(final String pColumnName) throws Exception {
    int columnIndex = this.resultSet.getColumnIndex(pColumnName);
    Integer result = null;
    if (!this.resultSet.isNull(columnIndex)) {
      result = this.resultSet.getInt(columnIndex);
    }
    return result;
  }
1172689
public String getPrincipalAttributeValue(final Principal p, final String attributeName) {
        val attributes = p.getAttributes();
        if (attributes.containsKey(attributeName)) {
            return CollectionUtils.toCollection(attributes.get(attributeName)).iterator().next().toString();
        }
        return null;
    }