org.gitective.core.filter.commit
Class CommitFilter

java.lang.Object
  extended by org.eclipse.jgit.revwalk.filter.RevFilter
      extended by org.gitective.core.filter.commit.CommitFilter
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CommitCountFilter, CommitCursorFilter, CommitDiffFilter, CommitHistogramFilter, CommitLimitFilter, CommitListFilter, CommitPipelineFilter, CommitterDiffFilter, CommitTreeFilter, CompositeCommitFilter, DateFilter, DuplicateTreeFilter, LastCommitFilter, NoteContentFilter, NoteFilter, ParentCountFilter, PatternFindCommitFilter, PersonFilter, PersonSetFilter

public abstract class CommitFilter
extends org.eclipse.jgit.revwalk.filter.RevFilter
implements Cloneable

Base commit filter class with utility methods to be used by sub-classes.


Field Summary
protected  org.eclipse.jgit.lib.Repository repository
          Repository for current walk
 
Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
ALL, MERGE_BASE, NO_MERGES, NONE
 
Constructor Summary
CommitFilter()
           
 
Method Summary
 org.eclipse.jgit.revwalk.filter.RevFilter clone()
          Clones this filter.
protected  boolean include(boolean include)
          Return the include value given unless include is false and this filter is configured to stop the search when a commit is not included.
 CommitFilter reset()
          Resets the filter state.
 CommitFilter setRepository(org.eclipse.jgit.lib.Repository repository)
          Set the repository for the walk that is about to begin.
 CommitFilter setStop(boolean stop)
          Set whether the search should be stopped when a commit visited is not included.
 
Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
include, negate, requiresCommitBody, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

repository

protected org.eclipse.jgit.lib.Repository repository
Repository for current walk

Constructor Detail

CommitFilter

public CommitFilter()
Method Detail

setStop

public CommitFilter setStop(boolean stop)
Set whether the search should be stopped when a commit visited is not included.

Parameters:
stop -
Returns:
this filter

setRepository

public CommitFilter setRepository(org.eclipse.jgit.lib.Repository repository)
Set the repository for the walk that is about to begin.

Parameters:
repository -
Returns:
this filter

reset

public CommitFilter reset()
Resets the filter state. The base implementation does nothing by default and sub-classes should override if custom reset logic exists.

Returns:
this filter

include

protected boolean include(boolean include)
Return the include value given unless include is false and this filter is configured to stop the search when a commit is not included.

Parameters:
include -
Returns:
include parameter value

clone

public org.eclipse.jgit.revwalk.filter.RevFilter clone()
Clones this filter.

The default implementation throws a UnsupportedOperationException and sub-classes should override if filter cloning is supported.

Overrides:
clone in class org.eclipse.jgit.revwalk.filter.RevFilter
See Also:
RevFilter.clone()


Copyright © 2011-2012. All Rights Reserved.