public class ReversePatternSearchStrategy extends java.lang.Object implements ISearchStrategy
Constructor and Description |
---|
ReversePatternSearchStrategy(Token termToken,
boolean doComplexityCheck,
boolean disallowIgnoreTokens)
The constructor
|
Modifier and Type | Method and Description |
---|---|
SearchDetails |
getSearch(java.io.File mediaFile,
java.io.File rootMediaDir,
java.lang.String renamePattern,
MediaDirectory mediaDir)
Look up the media file details using the renamePattern
|
public ReversePatternSearchStrategy(Token termToken, boolean doComplexityCheck, boolean disallowIgnoreTokens)
termToken
- The token type that would be used when searching for this filedoComplexityCheck
- True to reject patterns that don't have a certian complexitydisallowIgnoreTokens
- If true, them don't make if the file name contains ingored tokenspublic SearchDetails getSearch(java.io.File mediaFile, java.io.File rootMediaDir, java.lang.String renamePattern, MediaDirectory mediaDir)
getSearch
in interface ISearchStrategy
mediaFile
- The media file that is been processedrootMediaDir
- The root media directoryrenamePattern
- The pattern that is been used to rename media filesmediaDir
- The media directory