org.jenkinsci.plugins.graniteclient
Class PathOrPackIdFilter

java.lang.Object
  extended by 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


Field Summary
static PathOrPackIdFilter INCLUDE_ALL_FILTER
           
static String WILDCARD
           
 
Constructor Summary
PathOrPackIdFilter(String pathPattern)
           
PathOrPackIdFilter(String source, String group, String name, String version)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCLUDE_ALL_FILTER

public static final PathOrPackIdFilter INCLUDE_ALL_FILTER

WILDCARD

public static final String WILDCARD
See Also:
Constant Field Values
Constructor Detail

PathOrPackIdFilter

public PathOrPackIdFilter(String source,
                          String group,
                          String name,
                          String version)

PathOrPackIdFilter

public PathOrPackIdFilter(String pathPattern)
Method Detail

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.