Class SimpleNameFilter
java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.SimpleNameFilter
- All Implemented Interfaces:
IBundleFilter
- Direct Known Subclasses:
SimpleManifestNameFilter
Implements a simple name filter filtering both, JAR name and symbolic name for the given regular expression.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleNameFilter(String regEx) Creates a simple name filter from the given Java regular expression. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the givenjarshall be accepted.booleanacceptSymbolicName(String name) Returns whether the given symbolicnameshall be accepted.protected PatternReturns the match pattern.
-
Field Details
-
pattern
-
-
Constructor Details
-
SimpleNameFilter
Creates a simple name filter from the given Java regular expression.- Parameters:
regEx- the regular expression to be considered- Throws:
PatternSyntaxException- in case that the pattern syntax is wrong
-
-
Method Details
-
getPattern
Returns the match pattern.- Returns:
- the match pattern
-
acceptJar
Description copied from interface:IBundleFilterReturns whether the givenjarshall be accepted.- Specified by:
acceptJarin interfaceIBundleFilter- Parameters:
jar- the JAR to be analyzed- Returns:
trueif it shall be accepted,falseelse
-
acceptSymbolicName
Description copied from interface:IBundleFilterReturns whether the given symbolicnameshall be accepted.- Specified by:
acceptSymbolicNamein interfaceIBundleFilter- Parameters:
name- the name to be analyzed- Returns:
trueif it shall be accepted,falseelse
-