Package org.dspace.app.itemupdate
Class BitstreamFilterByFilename
- java.lang.Object
-
- org.dspace.app.itemupdate.BitstreamFilter
-
- org.dspace.app.itemupdate.BitstreamFilterByFilename
-
public class BitstreamFilterByFilename extends BitstreamFilter
BitstreamFilter implementation to filter by filename pattern
-
-
Field Summary
Fields Modifier and Type Field Description protected StringfilenameRegexprotected Patternpattern-
Fields inherited from class org.dspace.app.itemupdate.BitstreamFilter
props
-
-
Constructor Summary
Constructors Constructor Description BitstreamFilterByFilename()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Bitstream bitstream)Tests bitstream by matching the regular expression in the properties against the bitstream name-
Methods inherited from class org.dspace.app.itemupdate.BitstreamFilter
initProperties
-
-
-
-
Method Detail
-
accept
public boolean accept(Bitstream bitstream) throws BitstreamFilterException
Tests bitstream by matching the regular expression in the properties against the bitstream name- Specified by:
acceptin classBitstreamFilter- Parameters:
bitstream- Bitstream- Returns:
- whether bitstream name matches the regular expression
- Throws:
BitstreamFilterException- if filter error
-
-