org.jboss.shrinkwrap.api
Class Filters

java.lang.Object
  extended by org.jboss.shrinkwrap.api.Filters

public final class Filters
extends Object

Factory class for the creation of new Filter instances

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
static Filter<ArchivePath> exclude(String regexp)
          Filter that exclude all ArchivePaths that match a given Regular Expression Pattern.
static Filter<ArchivePath> include(Class<?> clazz)
          Filter that includes a specific Class.
static Filter<ArchivePath> include(String regexp)
          Filer that include all ArchivePaths that match the given Regular Expression Pattern.
static Filter<ArchivePath> includeAll()
          Filter that includes all ArchivePaths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

includeAll

public static Filter<ArchivePath> includeAll()
Filter that includes all ArchivePaths. Only meant to be used internally.

Returns:
A Filter that always return true

include

public static Filter<ArchivePath> include(String regexp)
Filer that include all ArchivePaths that match the given Regular Expression Pattern.

Parameters:
regexp - The expression to include
Returns:
A Regular Expression based include Filter

exclude

public static Filter<ArchivePath> exclude(String regexp)
Filter that exclude all ArchivePaths that match a given Regular Expression Pattern.

Parameters:
regexp - The expression to exclude
Returns:
A Regular Expression based exclude Filter

include

public static Filter<ArchivePath> include(Class<?> clazz)
Filter that includes a specific Class.

Parameters:
clazz - To be included
Returns:


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.