com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data
Class FilePath

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<FilePath>
      extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath
All Implemented Interfaces:
hudson.model.Describable<FilePath>

public class FilePath
extends hudson.model.AbstractDescribableImpl<FilePath>

Represents a rule for triggering on a filepath of a GerritProject.

Author:
Tomas Westling <thomas.westling@sonyericsson.com>

Nested Class Summary
static class FilePath.DescriptorImpl
          The Descriptor for the FilePath.
 
Constructor Summary
FilePath()
          Default empty constructor.
FilePath(CompareType compareType, String pattern)
          Default DataBound constructor.
 
Method Summary
 CompareType getCompareType()
          The CompareType used.
 String getPattern()
          The pattern to match on.
 boolean isInteresting(List<String> files)
          Tells if the given files are matched by this rule.
 void setCompareType(CompareType compareType)
          The CompareType used.
 void setPattern(String pattern)
          The pattern to match on.
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePath

public FilePath()
Default empty constructor.


FilePath

@DataBoundConstructor
public FilePath(CompareType compareType,
                                     String pattern)
Default DataBound constructor.

Parameters:
compareType - the CompareType to use when comparing with the pattern.
pattern - the pattern to match on.
Method Detail

getCompareType

public CompareType getCompareType()
The CompareType used.

Returns:
the CompareType

setCompareType

public void setCompareType(CompareType compareType)
The CompareType used.

Parameters:
compareType - the compareType.

getPattern

public String getPattern()
The pattern to match on.

Returns:
the pattern

setPattern

public void setPattern(String pattern)
The pattern to match on.

Parameters:
pattern - the pattern.

isInteresting

public boolean isInteresting(List<String> files)
Tells if the given files are matched by this rule.

Parameters:
files - the files in the patch set.
Returns:
true if the files match.


Copyright © 2004-2014. All Rights Reserved.