Class IControlFilter.Filter
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.profile.resolver.selection.IControlFilter.Filter
-
- All Implemented Interfaces:
IControlFilter
- Enclosing interface:
- IControlFilter
public static class IControlFilter.Filter extends Object implements IControlFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.selection.IControlFilter
IControlFilter.Filter
-
-
Field Summary
-
Fields inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.selection.IControlFilter
ALWAYS_MATCH, NONE_MATCH
-
-
Constructor Summary
Constructors Constructor Description Filter(ProfileImport profileImport)
Filter(IControlSelectionFilter includes, IControlSelectionFilter excludes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IControlSelectionFilter
getExclusionFilter()
IControlSelectionFilter
getInclusionFilter()
org.apache.commons.lang3.tuple.Pair<Boolean,Boolean>
match(IControl control, boolean defaultMatch)
Determines if the control is matched by this filter.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.oscal.lib.profile.resolver.selection.IControlFilter
match
-
-
-
-
Constructor Detail
-
Filter
public Filter(@NonNull ProfileImport profileImport)
-
Filter
public Filter(@NonNull IControlSelectionFilter includes, @NonNull IControlSelectionFilter excludes)
-
-
Method Detail
-
getInclusionFilter
@NonNull public IControlSelectionFilter getInclusionFilter()
- Specified by:
getInclusionFilter
in interfaceIControlFilter
-
getExclusionFilter
@NonNull public IControlSelectionFilter getExclusionFilter()
- Specified by:
getExclusionFilter
in interfaceIControlFilter
-
match
public org.apache.commons.lang3.tuple.Pair<Boolean,Boolean> match(@NonNull IControl control, boolean defaultMatch)
Description copied from interface:IControlFilter
Determines if the control is matched by this filter. This method returns aPair
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.- Specified by:
match
in interfaceIControlFilter
- Parameters:
control
- the control to check for a matchdefaultMatch
- 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 orfalse
otherwise), and if a match applies to child controls
-
-