Interface IControlFilter

    • Method Detail

      • newInstance

        @NonNull
        static IControlFilter newInstance​(@NonNull
                                          ProfileImport profileImport)
        Construct a new filter instance based on the provided profile import statement.
        Parameters:
        profileImport - an OSCAL profile import statement
        Returns:
        a new control filter
      • match

        @NonNull
        default org.apache.commons.lang3.tuple.Pair<Boolean,​Booleanmatch​(@NonNull
                                                                                 IControl control)
        Determines if the control is matched by this filter. This method returns a Pair where the first member of the pair indicates if the control matches, and the second indicates if the match applies to child controls as well.
        Parameters:
        control - the control to check for a match
        Returns:
        a pair indicating the status of the match (true for a match or false otherwise), and if a match applies to child controls
      • match

        @NonNull
        org.apache.commons.lang3.tuple.Pair<Boolean,​Booleanmatch​(@NonNull
                                                                         IControl control,
                                                                         boolean defaultMatch)
        Determines if the control is matched by this filter. This method returns a Pair where the first member of the pair indicates if the control matches, and the second indicates if the match applies to child controls as well.
        Parameters:
        control - the control to check for a match
        defaultMatch - the match status to use if the filter doesn't have an explicit hit
        Returns:
        a pair indicating the status of the match (true for a match or false otherwise), and if a match applies to child controls