public Boolean getBooleanProperty(String pstrSection, String pstrProp)
    {
        boolean     blnRet  = false;
        String      strVal  = null;
        INIProperty objProp = null;
        INISection  objSec  = null;

        objSec = (INISection) this.mhmapSections.get(pstrSection);
        if (objSec != null)
        {
            objProp = objSec.getProperty(pstrProp);
            if (objProp != null)
            {
                strVal = objProp.getPropValue().toUpperCase();
                if (strVal.equals("YES") || strVal.equals("TRUE") ||
                    strVal.equals("1"))
                {
                    blnRet = true;
                }
                objProp = null;
            }
            objSec = null;
        }
        return new Boolean(blnRet);
    }
public Boolean getBooleanProperty ( String pstrSection , String pstrProp ) { boolean blnRet = false ; String strVal = null ; INIProperty objProp = null ; INISection objSec = null ; objSec = ( INISection ) this . mhmapSections . get ( pstrSection ) ; if ( objSec != null ) { objProp = objSec . getProperty ( pstrProp ) ; if ( objProp != null ) { strVal = objProp . getPropValue ( ) . toUpperCase ( ) ; if ( strVal . equals ( "YES" ) || strVal . equals ( "TRUE" ) || strVal . equals ( "1" ) ) { blnRet = true ; } objProp = null ; } objSec = null ; } return new Boolean ( blnRet ) ; }
Returns the specified boolean property from the specified section.
This method considers the following values as boolean values.
<ol>
<li>YES/yes/Yes - boolean true</li>
<li>NO/no/No  - boolean false</li>
<li>1 - boolean true</li>
<li>0 - boolean false</li>
<li>TRUE/True/true - boolean true</li>
<li>FALSE/False/false - boolean false</li>
</ol>
@param pstrSection the INI section name.
@param pstrProp the property to be retrieved.
@return the boolean value