Package org.eobjects.analyzer.reference

Examples of org.eobjects.analyzer.reference.RegexStringPattern


  }

  @Override
  public boolean matches(String string) {
    if (_delegate == null) {
      _delegate = new RegexStringPattern(getName(), _regex.getExpression(), true);
    }
    return _delegate.matches(string);
  }
View Full Code Here


    performAssertions(propertyWidgetFactory, "String pattern property", SingleStringPatternPropertyWidget.class, null,
        new SimpleStringPattern("foo", "aaa"));

    performAssertions(propertyWidgetFactory, "String pattern array property", MultipleStringPatternPropertyWidget.class,
        new StringPattern[0], new StringPattern[] { new SimpleStringPattern("foo", "aaa"),
            new RegexStringPattern("bar", "aaa", true) });

    performAssertions(propertyWidgetFactory, "Dictionary property", SingleDictionaryPropertyWidget.class, null,
        new SimpleDictionary("foo", "foobar"));

    performAssertions(propertyWidgetFactory, "Dictionary array property", MultipleDictionariesPropertyWidget.class,
View Full Code Here

          return;
        }
        if (_regexStringPattern != null && _catalog.containsStringPattern(_regexStringPattern.getName())) {
          _catalog.removeStringPattern(_catalog.getStringPattern(_regexStringPattern.getName()));
        }
        RegexStringPattern regexStringPattern = new RegexStringPattern(expressionName, expression, true);
        _regexStringPattern = regexStringPattern;
        _catalog.addStringPattern(regexStringPattern);
        RegexStringPatternDialog.this.dispose();
      }
    });
View Full Code Here

TOP

Related Classes of org.eobjects.analyzer.reference.RegexStringPattern

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.