TransformableFilter
public class ScopeFilter extends java.lang.Object implements TransformableFilter
org.sonatype.aether.util.filter.ScopeDependencyFilter
,
ScopeDependencyFilter
Constructor | Description |
---|---|
ScopeFilter(java.util.Collection<java.lang.String> included,
java.util.Collection<java.lang.String> excluded) |
Modifier and Type | Method | Description |
---|---|---|
static ScopeFilter |
excluding(java.lang.String... excluded) |
Construct a ScopeFilter based on excluded scopes
|
static ScopeFilter |
excluding(java.util.Collection<java.lang.String> excluded) |
Construct a ScopeFilter based on excluded scopes
|
java.util.Collection<java.lang.String> |
getExcluded() |
Get the excluded scopes
|
java.util.Collection<java.lang.String> |
getIncluded() |
Get the included scopes
|
static ScopeFilter |
including(java.lang.String... included) |
Construct a ScopeFilter based on included scopes
|
static ScopeFilter |
including(java.util.Collection<java.lang.String> included) |
Construct a ScopeFilter based on included scopes
|
<T> T |
transform(FilterTransformer<T> transformer) |
Transform this filter to a tool specific implementation
|
public ScopeFilter(java.util.Collection<java.lang.String> included, java.util.Collection<java.lang.String> excluded)
included
- specific scopes to include or null
to include allexcluded
- specific scopes to exclude or null
to exclude nonepublic static ScopeFilter including(java.util.Collection<java.lang.String> included)
included
- the scopes to include, may be null
null
public static ScopeFilter including(java.lang.String... included)
included
- the scopes to include, must not be null
null
public static ScopeFilter excluding(java.util.Collection<java.lang.String> excluded)
excluded
- the scopes to exclude, may be null
null
public static ScopeFilter excluding(java.lang.String... excluded)
excluded
- the scopes to exclude, must not be null
null
public final java.util.Collection<java.lang.String> getExcluded()
null
public final java.util.Collection<java.lang.String> getIncluded()
null
public <T> T transform(FilterTransformer<T> transformer)
transform
in interface TransformableFilter
T
- The type to be used.transformer
- the transformer, must not be null
Copyright © 2018. All rights reserved.