Class PatternUtil


  • public class PatternUtil
    extends Object
    The utillity class to compile special Pattern to search navigator.
    • Method Detail

      • compileSearchPattern

        public static Pattern compileSearchPattern​(String regex,
                                                   boolean onlyInNames)
        Compiles search Pattern from the given regular expression.
        Parameters:
        regex - the given regular expression to be compiled, can not be null
        onlyInNames - defines whether to compile pattern to search only by names of model objects or as by names and by types
        Returns:
        the compiled search Pattern or empty pattern if the given regular expression's syntax is invalid, can not be null