internal static string GetHeaderLabel(Xbrl.Table.Layout.Axis axis, Xbrl.Table.Layout.AxisHeader header, int row) { string label = GetLabel(header, false); if (label == null) { label = GetLabel(axis.GetDefinitionBreakdown((uint)row), false); } return(label); }
internal static string GetVerboseLabel(Xbrl.Table.Layout.AxisHeader header, bool bFallbackToId = true) { var labels = header.DefinitionNode.GetLabels("http://www.xbrl.org/2003/role/verboseLabel", null, null); if (labels.Count == 0) { labels = header.Axis.GetDefinitionBreakdown(header.Row).GetLabels("http://www.xbrl.org/2003/role/verboseLabel", null, null); } return(GetLabelWithLanguage(labels, LabelLanguage, bFallbackToId ? header.DefinitionNode.Id : null)); }
internal static string GetRCCode(Xbrl.Table.Layout.AxisHeader header) { var labels = header.DefinitionNode.GetLabels("http://www.eurofiling.info/xbrl/role/rc-code", null, null); if (labels.Count == 0) { labels = header.Axis.GetDefinitionBreakdown(header.Row).GetLabels("http://www.eurofiling.info/xbrl/role/rc-code", null, null); } if (labels.Count > 0) { return(labels.First().Text); } return(null); }