org.at4j.archive.builder
Class NameETAF

java.lang.Object
  extended by org.entityfs.support.filter.AbstractConvenientFilter<EntryToArchive>
      extended by org.at4j.archive.builder.NameETAF
All Implemented Interfaces:
Cloneable, EntityToArchiveFilter, ConvenientFilter<EntryToArchive>, Filter<EntryToArchive>

public final class NameETAF
extends AbstractConvenientFilter<EntryToArchive>
implements EntityToArchiveFilter

This filter matches entities with a specific name. The filter may either be case sensitive or not.

"ETAF" stands for EntryToArchiveFilter

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
NameETAF(String name)
          Create a new case sensitive name filter.
NameETAF(String name, boolean caseSensitive)
          Create a new name filter.
 
Method Summary
 boolean matches(EntryToArchive object)
          Does the filter match the object?
 
Methods inherited from class org.entityfs.support.filter.AbstractConvenientFilter
and, bitwiseNegate, isCase, not, or, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameETAF

public NameETAF(String name)
Create a new case sensitive name filter.

Parameters:
name - The name to match.

NameETAF

public NameETAF(String name,
                boolean caseSensitive)
Create a new name filter.

Parameters:
name - The name to match.
caseSensitive - Should the filter be case sensitive?
Method Detail

matches

public boolean matches(EntryToArchive object)
Description copied from interface: Filter
Does the filter match the object?

Specified by:
matches in interface Filter<EntryToArchive>
Parameters:
object - The object to match.
Returns:
true if the filter matches the object.