com.togethersoft.openapi.util.file
Class WildcardFileFilter.Mask


private class WildcardFileFilter.Mask

Inner helper class


Field Summary
 private Perl5MatchermyMatcher
          used to match regular expressions (conforming to the Perl5 regular expression syntax) generated by Perl5Compiler.
 private Perl5PatternmyPattern
          Pattern for Perl5 regular expressions
 private booleanmyStarFlag
          Indicates what pattern equals "*"

Constructor Summary
WildcardFileFilter.Mask(String mask)
           

Method Summary
 booleanaccept(String candidate)
           
 private booleancompileExpression(String expression)
          At usage of regular expressions compiles expression in Perl5Pattern with default options,
 private voidinit(String text)
           
 booleanisAnyFileMask()
           

Field Detail

myMatcher

private Perl5Matcher myMatcher
used to match regular expressions (conforming to the Perl5 regular expression syntax) generated by Perl5Compiler.

myPattern

private Perl5Pattern myPattern
Pattern for Perl5 regular expressions
See Also:
com.oroinc.text.regex.Pattern

myStarFlag

private boolean myStarFlag
Indicates what pattern equals "*"
Constructor Detail

WildcardFileFilter.Mask

public WildcardFileFilter.Mask(String mask)
Method Detail

accept

public boolean accept(String candidate)

compileExpression

private boolean compileExpression(String expression)
At usage of regular expressions compiles expression in Perl5Pattern with default options,

init

private void init(String text)

isAnyFileMask

public boolean isAnyFileMask()