org.jenkinsci.plugins.graniteclient
Class PathOrPackIdFilter
java.lang.Object
org.jenkinsci.plugins.graniteclient.PathOrPackIdFilter
- All Implemented Interfaces:
- net.adamcin.granite.client.packman.PackIdFilter
public final class PathOrPackIdFilter
- extends Object
- implements net.adamcin.granite.client.packman.PackIdFilter
Default implementation of 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 includes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INCLUDE_ALL_FILTER
public static final PathOrPackIdFilter INCLUDE_ALL_FILTER
WILDCARD
public static final String WILDCARD
- See Also:
- Constant Field Values
PathOrPackIdFilter
public PathOrPackIdFilter(String source,
String group,
String name,
String version)
PathOrPackIdFilter
public PathOrPackIdFilter(String pathPattern)
isPathFilter
public boolean isPathFilter()
getPathPattern
public String getPathPattern()
getSource
public String getSource()
includes
public boolean includes(net.adamcin.granite.client.packman.PackId packId)
- Specified by:
includes
in interface net.adamcin.granite.client.packman.PackIdFilter
includes
public boolean includes(hudson.FilePath basePath,
hudson.FilePath filePath)
parse
public static PathOrPackIdFilter parse(String filterString)
Copyright © 2013-2014. All Rights Reserved.