Class FilePath
java.lang.Object
hudson.model.AbstractDescribableImpl<FilePath>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath
- All Implemented Interfaces:
Describable<FilePath>
Represents a rule for triggering on a filepath of a GerritProject.
- Author:
- Tomas Westling <thomas.westling@sonyericsson.com>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Descriptor for the FilePath. -
Constructor Summary
ConstructorsConstructorDescriptionFilePath()Default empty constructor.FilePath(CompareType compareType, String pattern) Default DataBound constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe CompareType used.The pattern to match on.booleanisInteresting(String file) Tells if the given file is matched by this rule.booleanisInteresting(List<String> files) Tells if the given files are matched by this rule.voidsetCompareType(CompareType compareType) The CompareType used.voidsetPattern(String pattern) The pattern to match on.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
FilePath
public FilePath()Default empty constructor. -
FilePath
Default DataBound constructor.- Parameters:
compareType- the CompareType to use when comparing with the pattern.pattern- the pattern to match on.
-
-
Method Details
-
getCompareType
The CompareType used.- Returns:
- the CompareType
-
setCompareType
The CompareType used.- Parameters:
compareType- the compareType.
-
getPattern
The pattern to match on.- Returns:
- the pattern
-
setPattern
The pattern to match on.- Parameters:
pattern- the pattern.
-
isInteresting
Tells if the given files are matched by this rule.- Parameters:
files- the files in the patch set.- Returns:
- true if the files match.
-
isInteresting
Tells if the given file is matched by this rule.- Parameters:
file- the file in the patch set.- Returns:
- true if the files match.
-