public final class PathOrPackIdFilter extends Object implements net.adamcin.granite.client.packman.PackIdFilter
PackIdFilter
which parses a standard filter string
format, matching "*:*:*", for "group:name:version". Also supports filtering on FilePath,
such that the includes(hudson.FilePath,hudson.FilePath)
method includesModifier and Type | Field and Description |
---|---|
static PathOrPackIdFilter |
INCLUDE_ALL_FILTER |
static String |
WILDCARD |
Constructor and Description |
---|
PathOrPackIdFilter(String pathPattern) |
PathOrPackIdFilter(String source,
String group,
String name,
String version) |
Modifier and Type | Method and Description |
---|---|
String |
getPathPattern() |
String |
getSource() |
boolean |
includes(hudson.FilePath basePath,
hudson.FilePath filePath) |
boolean |
includes(net.adamcin.granite.client.packman.PackId packId) |
boolean |
isPathFilter() |
static PathOrPackIdFilter |
parse(String filterString) |
public static final PathOrPackIdFilter INCLUDE_ALL_FILTER
public static final String WILDCARD
public PathOrPackIdFilter(String source, String group, String name, String version)
public PathOrPackIdFilter(String pathPattern)
public boolean isPathFilter()
public String getPathPattern()
public String getSource()
public boolean includes(net.adamcin.granite.client.packman.PackId packId)
includes
in interface net.adamcin.granite.client.packman.PackIdFilter
public boolean includes(hudson.FilePath basePath, hudson.FilePath filePath)
public static PathOrPackIdFilter parse(String filterString)
Copyright © 2013–2019. All rights reserved.