org.gitective.core.filter.commit
Class PersonFilter

java.lang.Object
  extended by org.eclipse.jgit.revwalk.filter.RevFilter
      extended by org.gitective.core.filter.commit.CommitFilter
          extended by org.gitective.core.filter.commit.PersonFilter
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AuthorFilter, CommitterFilter

public abstract class PersonFilter
extends CommitFilter

Base commit filter that contains utility methods for matching the configured PersonIdent.


Field Summary
protected  String email
          E-mail matching against
protected  String name
          Name matching against
 
Fields inherited from class org.gitective.core.filter.commit.CommitFilter
repository
 
Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
ALL, MERGE_BASE, NO_MERGES, NONE
 
Constructor Summary
PersonFilter(org.eclipse.jgit.lib.PersonIdent person)
          Create a person filter
PersonFilter(String name, String email)
          Create a person filter
 
Method Summary
protected  boolean match(org.eclipse.jgit.lib.PersonIdent ident)
          Match the specified PersonIdent against the name and e-mail address of the configured PersonIdent.
 
Methods inherited from class org.gitective.core.filter.commit.CommitFilter
clone, include, reset, setRepository, setStop
 
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

name

protected final String name
Name matching against


email

protected final String email
E-mail matching against

Constructor Detail

PersonFilter

public PersonFilter(String name,
                    String email)
Create a person filter

Parameters:
name -
email -

PersonFilter

public PersonFilter(org.eclipse.jgit.lib.PersonIdent person)
Create a person filter

Parameters:
person -
Method Detail

match

protected boolean match(org.eclipse.jgit.lib.PersonIdent ident)
Match the specified PersonIdent against the name and e-mail address of the configured PersonIdent.

Parameters:
ident -
Returns:
true on matches, false otherwise


Copyright © 2011-2012. All Rights Reserved.