org.at4j.archive.builder
Class NameGlobETAF

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

public final class NameGlobETAF
extends AbstractConvenientFilter<EntryToArchive>
implements EntityToArchiveFilter

This filter matches entities with names that match a Glob pattern (such as .exe).

"ETAF" stands for EntryToArchiveFilter

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
NameGlobETAF(Glob pattern)
          Create a new filter.
NameGlobETAF(String pattern)
          Create a new 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

NameGlobETAF

public NameGlobETAF(String pattern)
Create a new filter.

Parameters:
pattern - The glob pattern.

NameGlobETAF

public NameGlobETAF(Glob pattern)
Create a new filter.

Parameters:
pattern - The glob pattern.
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.