Class ScopeFilter
java.lang.Object
org.apache.maven.shared.artifact.filter.resolve.ScopeFilter
- All Implemented Interfaces:
TransformableFilter
Filter based on scope. Note: There's no logic for inherited scoped
- Since:
- 3.0
- Author:
- Robert Scholte
- See Also:
-
ScopeDependencyFilter
-
Constructor Summary
ConstructorDescriptionScopeFilter
(Collection<String> included, Collection<String> excluded) Constructor for ScopeFilter. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeFilter
Construct a ScopeFilter based on excluded scopesstatic ScopeFilter
excluding
(Collection<String> excluded) Construct a ScopeFilter based on excluded scopesfinal Collection<String>
Get the excluded scopesfinal Collection<String>
Get the included scopesstatic ScopeFilter
Construct a ScopeFilter based on included scopesstatic ScopeFilter
including
(Collection<String> included) Construct a ScopeFilter based on included scopes<T> T
transform
(FilterTransformer<T> transformer) Subclasses should include the following code:
-
Constructor Details
-
ScopeFilter
Constructor for ScopeFilter.
- Parameters:
included
- specific scopes to include ornull
to include allexcluded
- specific scopes to exclude ornull
to exclude none
-
-
Method Details
-
including
Construct a ScopeFilter based on included scopes- Parameters:
included
- the scopes to include, may benull
- Returns:
- the filter, never
null
-
including
Construct a ScopeFilter based on included scopes- Parameters:
included
- the scopes to include, must not benull
- Returns:
- the filter, never
null
-
excluding
Construct a ScopeFilter based on excluded scopes- Parameters:
excluded
- the scopes to exclude, may benull
- Returns:
- the filter, never
null
-
excluding
Construct a ScopeFilter based on excluded scopes- Parameters:
excluded
- the scopes to exclude, must not benull
- Returns:
- the filter, never
null
-
getExcluded
Get the excluded scopes- Returns:
- the scopes to exclude, may be
null
-
getIncluded
Get the included scopes- Returns:
- the scopes to include, may be
null
-