/// <summary> /// Determines if the report is a statement. If the report type cannot be determine, returns null. /// </summary> /// <param name="reportName"></param> /// <returns>A nullable <see cref="T:Boolean"/> indicating if the report is a Statement or null if it cannot be determined.</returns> /// <exception cref="T:ArgumentNullException"><paramref name="reportName"/> is a null reference.</exception> public static bool?IsStatement(string reportName) { if (reportName == null) { throw new ArgumentNullException("Cannot determine if report is Statement because the report name is null."); } string reportType = ReportUtils.GetType(reportName); // Report type cannot be determined if (reportType == null) { return(null); } // Report type is statement if (string.Equals(reportType, ReportUtils.STATEMENT, StringComparison.CurrentCultureIgnoreCase)) { return(true); } // Report type is something other than statement else { return(false); } }
public static bool IsStatementOfEquityCombined(string reportLongName) { // Disclosure reports should not be rendered as equity statements //if( ReportUtils.IsDisclosureReport( reportLongName ) ) //return false; // No type other than Statement should be rendered as equity (although // we allow indeterminate reports to fall through here) if (ReportUtils.IsStatement(reportLongName) == false) { return(false); } if (ReportUtils.IsStatementOfStockholdersEquity(reportLongName)) { return(true); } if (ReportUtils.IsStatementOfShareholdersEquity(reportLongName)) { return(true); } if (ReportUtils.IsStatementOfChangesEquity(reportLongName)) { return(true); } if (ReportUtils.IsStatementOfEquity(reportLongName)) { return(true); } return(false); }