public class ValidCombinationsFilter
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ValidCombinationsFilter.DimMemberCombinationClass to store the combinations of member/dimension of axis of a XBRLTableLayout. | 
| static class  | ValidCombinationsFilter.PeriodCombinationThis is a pair of ColumnPeriod instances, one duration and one instant. | 
| Constructor and Description | 
|---|
| ValidCombinationsFilter()Instantiates a new valid combinations filter. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addExcludedDimMember(XBRLRoleType role,
                    int viewModeCode,
                    java.lang.String itemCode,
                    int axis,
                    java.lang.String dim,
                    java.lang.String mem)Adds a excluded combination dimension/member/axis. | 
| void | addExcludedPeriod(ValidCombinationsFilter.PeriodCombination epc,
                 XBRLRoleType role,
                 int viewModeCode,
                 java.lang.String itemCode)Adds a new rule for a new excluded period combination. | 
| boolean | isExcludedDimMember(XBRLRoleType role,
                   int viewModeCode,
                   java.lang.String itemCode,
                   int axis,
                   java.lang.String dim,
                   java.lang.String mem)Return true if the dimension/member/axis combination is excluded. | 
| boolean | isExcludedDimMemberCellHeader(XBRLRoleType role,
                             int viewModeCode,
                             java.lang.String itemCode,
                             int axis,
                             CellHeader ch)Checks if is excluded dim member cell header. | 
| boolean | isExcludedPeriod(ColumnPeriod memInstant,
                ColumnPeriod memDuration,
                XBRLRoleType role,
                int viewModeCode,
                java.lang.String itemCode)This method compares a combination of duration and instant 
 and returns true or false depending on the rules. | 
| boolean | isExcludedPeriod(java.util.List<Member<?>> lst,
                XBRLRoleType role,
                int viewModeCode,
                java.lang.String itemCode)This is the method that compares a combination received against the stored rules
 and returns true or false depending on the rules result. | 
| static void | migratePropertyToDatabase(java.lang.String sKey,
                         java.lang.String propValue)Migrate property to database. | 
| java.util.Set<ValidCombinationsFilter.PeriodCombination> | prepareExcludedPeriods(java.util.Set<ColumnPeriod> allInstantPeriods,
                      java.util.Set<ColumnPeriod> allDurationPeriods,
                      XBRLRoleType role,
                      int viewModeCode,
                      java.lang.String itemCode)Prepares a set of excluded period combinations from the incoming sets of instants and durations. | 
| void | removeAllExcludedDimMembers(XBRLRoleType role,
                           int viewModeCode,
                           java.lang.String itemCode,
                           int axis)Removes all excluded combinations of dimension/member/axis. | 
| void | removeAllExcludedPeriods(XBRLRoleType role,
                        int viewModeCode,
                        java.lang.String itemCode)Removes all excluded period combinations stored for the role and viewModeCode in the application
 properties set in the props parameter. | 
public ValidCombinationsFilter()
public boolean isExcludedPeriod(java.util.List<Member<?>> lst, XBRLRoleType role, int viewModeCode, java.lang.String itemCode)
lst - LinkedList of members. PeriodMembers will be explored insiderole - the XBRLRoleType that will be examined, each role type might have different rolesviewModeCode - a number to deal with several uses of the same roleitemCode - the item codepublic boolean isExcludedPeriod(ColumnPeriod memInstant, ColumnPeriod memDuration, XBRLRoleType role, int viewModeCode, java.lang.String itemCode)
memInstant - ColumnPeriod with instant may be null if memDuration is not nullmemDuration - ColumnPeriod with duration may be null y memInstant is not nullrole - the XBRLRoleType that will be examined, each role type might have different rolesviewModeCode - a number to deal with several uses of the same roleitemCode - the item codepublic void addExcludedPeriod(ValidCombinationsFilter.PeriodCombination epc, XBRLRoleType role, int viewModeCode, java.lang.String itemCode)
epc - the valid combination to addrole - the role for the valid combinationviewModeCode - a number to deal with several uses of the same roleitemCode - the item codepublic void removeAllExcludedPeriods(XBRLRoleType role, int viewModeCode, java.lang.String itemCode)
role - the roleviewModeCode - a number to deal with several uses of the same roleitemCode - the item codepublic java.util.Set<ValidCombinationsFilter.PeriodCombination> prepareExcludedPeriods(java.util.Set<ColumnPeriod> allInstantPeriods, java.util.Set<ColumnPeriod> allDurationPeriods, XBRLRoleType role, int viewModeCode, java.lang.String itemCode)
allInstantPeriods - the all instant periodsallDurationPeriods - the all duration periodsrole - the roleviewModeCode - a number to deal with several uses of the same roleitemCode - the item codepublic static void migratePropertyToDatabase(java.lang.String sKey,
                                             java.lang.String propValue)
sKey - the s keypropValue - the prop valuepublic void addExcludedDimMember(XBRLRoleType role, int viewModeCode, java.lang.String itemCode, int axis, java.lang.String dim, java.lang.String mem)
role - the roleviewModeCode - a number to deal with several uses of the same roleitemCode - the item codeaxis - the integer axis codedim - the Dimensionmem - the Member of the Dimensionpublic void removeAllExcludedDimMembers(XBRLRoleType role, int viewModeCode, java.lang.String itemCode, int axis)
role - the roleviewModeCode - a number to deal with several uses of the same roleitemCode - the item codeaxis - the integer axis codepublic boolean isExcludedDimMember(XBRLRoleType role, int viewModeCode, java.lang.String itemCode, int axis, java.lang.String dim, java.lang.String mem)
role - the roleviewModeCode - a number to deal with several uses of the same roleitemCode - the item codeaxis - the integer axis codedim - the Dimensionmem - the Member of the Dimensionpublic boolean isExcludedDimMemberCellHeader(XBRLRoleType role, int viewModeCode, java.lang.String itemCode, int axis, CellHeader ch)
role - the roleviewModeCode - a number to deal with several uses of the same roleitemCode - the item codeaxis - the integer axis codech - the axis CellHeaderCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa