org.ops4j.pax.swissbox.extender
Class RegexKeyManifestFilter

java.lang.Object
  extended by org.ops4j.pax.swissbox.extender.RegexKeyManifestFilter
All Implemented Interfaces:
ManifestFilter

public class RegexKeyManifestFilter
extends java.lang.Object
implements ManifestFilter

A manifest filter that filters manifest keys based on a regular expression.

Since:
0.2.0, February 09, 2008
Author:
Alin Dreghiciu

Constructor Summary
RegexKeyManifestFilter(java.lang.String regexp)
          Constructor.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> match(java.util.Map<java.lang.String,java.lang.String> entries)
          Returns a list of manifest entries matching the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexKeyManifestFilter

public RegexKeyManifestFilter(java.lang.String regexp)
Constructor.

Parameters:
regexp - a regular expression. Cannot be null or empty.
Throws:
org.ops4j.lang.NullArgumentException - - If regexp is null or empty
java.util.regex.PatternSyntaxException - - If the expression's syntax is invalid
Method Detail

match

public java.util.Map<java.lang.String,java.lang.String> match(java.util.Map<java.lang.String,java.lang.String> entries)
Description copied from interface: ManifestFilter
Returns a list of manifest entries matching the filter.

Specified by:
match in interface ManifestFilter
Parameters:
entries - entries to be filtered
Returns:
matching entries


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.