public class ScopeFilter extends Object implements TransformableFilter
ScopeDependencyFilter| Constructor and Description |
|---|
ScopeFilter(Collection<String> included,
Collection<String> excluded)
Constructor for ScopeFilter.
|
| Modifier and Type | Method and Description |
|---|---|
static ScopeFilter |
excluding(Collection<String> excluded)
Construct a ScopeFilter based on excluded scopes
|
static ScopeFilter |
excluding(String... excluded)
Construct a ScopeFilter based on excluded scopes
|
Collection<String> |
getExcluded()
Get the excluded scopes
|
Collection<String> |
getIncluded()
Get the included scopes
|
static ScopeFilter |
including(Collection<String> included)
Construct a ScopeFilter based on included scopes
|
static ScopeFilter |
including(String... included)
Construct a ScopeFilter based on included scopes
|
<T> T |
transform(FilterTransformer<T> transformer)
Subclasses should include the following code:
|
public ScopeFilter(Collection<String> included, Collection<String> excluded)
Constructor for ScopeFilter.
included - specific scopes to include or null to include allexcluded - specific scopes to exclude or null to exclude nonepublic static ScopeFilter including(Collection<String> included)
included - the scopes to include, may be nullnullpublic static ScopeFilter including(String... included)
included - the scopes to include, must not be nullnullpublic static ScopeFilter excluding(Collection<String> excluded)
excluded - the scopes to exclude, may be nullnullpublic static ScopeFilter excluding(String... excluded)
excluded - the scopes to exclude, must not be nullnullpublic final Collection<String> getExcluded()
nullpublic final Collection<String> getIncluded()
nullpublic <T> T transform(FilterTransformer<T> transformer)
@Override
public abstract <T> T transform( FilterTransformer<T> transformer )
{
return transformer.transform( this );
}
Transform this filter to a tool specific implementationtransform in interface TransformableFilterT - the interface of the tool specific filtertransformer - the tool specific transformer, may not be nullnullCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.