Codota Logo
StringPatternConnection
Code IndexAdd Codota to your IDE (free)

How to use
StringPatternConnection
in
org.datacleaner.reference

Best Java code snippets using org.datacleaner.reference.StringPatternConnection (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: datacleaner/DataCleaner

@Close
public void close() {
  if (stringPatternConnections != null) {
    for (final StringPatternConnection connection : stringPatternConnections) {
      connection.close();
    }
    stringPatternConnections = null;
  }
}
origin: datacleaner/DataCleaner

public Object[] doMatching(final Object value) {
  final Object[] result = new Object[stringPatternConnections.length];
  final String stringValue = ConvertToStringTransformer.transformValue(value);
  for (int i = 0; i < result.length; i++) {
    final boolean matches = stringPatternConnections[i].matches(stringValue);
    if (_outputType == MatchOutputType.TRUE_FALSE) {
      result[i] = matches;
    } else if (_outputType == MatchOutputType.INPUT_OR_NULL) {
      if (matches) {
        result[i] = stringValue;
      } else {
        result[i] = null;
      }
    }
  }
  return result;
}
origin: datacleaner/DataCleaner

@Close
public void close() {
  if (stringPatternConnections != null) {
    for (final StringPatternConnection stringPatternConnection : stringPatternConnections) {
      stringPatternConnection.close();
    }
    stringPatternConnections = null;
  }
}
origin: datacleaner/DataCleaner

@Override
public ValidationCategory categorize(final InputRow inputRow) {
  final String value = inputRow.getValue(column);
  if (value != null) {
    int matches = 0;
    for (final StringPatternConnection connection : stringPatternConnections) {
      if (connection.matches(value)) {
        matches++;
        if (matchCriteria == MatchFilterCriteria.ANY) {
          return ValidationCategory.VALID;
        }
      }
    }
    if (matchCriteria == MatchFilterCriteria.ALL) {
      return ValidationCategory.valueOf(matches == stringPatterns.length);
    }
  }
  return ValidationCategory.INVALID;
}
org.datacleaner.referenceStringPatternConnection

Most used methods

  • close
  • matches

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collectors (java.util.stream)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now