Tabnine Logo
ProfileTargetingExpression.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.milyn.cdr.ProfileTargetingExpression
constructor

Best Java code snippets using org.milyn.cdr.ProfileTargetingExpression.<init> (Showing top 4 results out of 315)

origin: smooks/smooks

/**
 * Parse the targeting expressions for this configuration.
 *
 * @param targetProfiles The <b>target-profile</b> expression from the resource configuration.
 */
private void parseTargetingExpressions(String targetProfiles) {
  // Parse the profiles.  Seperation tokens: ',' '|' and ';'
  StringTokenizer tokenizer = new StringTokenizer(targetProfiles, ",|;");
  if (tokenizer.countTokens() == 0) {
    throw new IllegalArgumentException("Empty 'target-profile'. [" + selector + "][" + resource + "]");
  } else {
    this.profileTargetingExpressionStrings = new String[tokenizer.countTokens()];
    profileTargetingExpressions = new ProfileTargetingExpression[tokenizer.countTokens()];
    for (int i = 0; tokenizer.hasMoreTokens(); i++) {
      String expression = tokenizer.nextToken();
      this.profileTargetingExpressionStrings[i] = expression;
      profileTargetingExpressions[i] = new ProfileTargetingExpression(expression);
    }
  }
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Parse the targeting expressions for this configuration.
 *
 * @param targetProfiles The <b>target-profile</b> expression from the resource configuration.
 */
private void parseTargetingExpressions(String targetProfiles) {
  // Parse the profiles.  Seperation tokens: ',' '|' and ';'
  StringTokenizer tokenizer = new StringTokenizer(targetProfiles, ",|;");
  if (tokenizer.countTokens() == 0) {
    throw new IllegalArgumentException("Empty 'target-profile'. [" + selector + "][" + resource + "]");
  } else {
    this.profileTargetingExpressionStrings = new String[tokenizer.countTokens()];
    profileTargetingExpressions = new ProfileTargetingExpression[tokenizer.countTokens()];
    for (int i = 0; tokenizer.hasMoreTokens(); i++) {
      String expression = tokenizer.nextToken();
      this.profileTargetingExpressionStrings[i] = expression;
      profileTargetingExpressions[i] = new ProfileTargetingExpression(expression);
    }
  }
}
origin: org.milyn/milyn-smooks-core

/**
 * Parse the targeting expressions for this configuration.
 *
 * @param targetProfiles The <b>target-profile</b> expression from the resource configuration.
 */
private void parseTargetingExpressions(String targetProfiles) {
  // Parse the profiles.  Seperation tokens: ',' '|' and ';'
  StringTokenizer tokenizer = new StringTokenizer(targetProfiles, ",|;");
  if (tokenizer.countTokens() == 0) {
    throw new IllegalArgumentException("Empty 'target-profile'. [" + selector + "][" + resource + "]");
  } else {
    this.profileTargetingExpressionStrings = new String[tokenizer.countTokens()];
    profileTargetingExpressions = new ProfileTargetingExpression[tokenizer.countTokens()];
    for (int i = 0; tokenizer.hasMoreTokens(); i++) {
      String expression = tokenizer.nextToken();
      this.profileTargetingExpressionStrings[i] = expression;
      profileTargetingExpressions[i] = new ProfileTargetingExpression(expression);
    }
  }
}
origin: org.milyn/milyn-smooks-all

/**
 * Parse the targeting expressions for this configuration.
 *
 * @param targetProfiles The <b>target-profile</b> expression from the resource configuration.
 */
private void parseTargetingExpressions(String targetProfiles) {
  // Parse the profiles.  Seperation tokens: ',' '|' and ';'
  StringTokenizer tokenizer = new StringTokenizer(targetProfiles, ",|;");
  if (tokenizer.countTokens() == 0) {
    throw new IllegalArgumentException("Empty 'target-profile'. [" + selector + "][" + resource + "]");
  } else {
    this.profileTargetingExpressionStrings = new String[tokenizer.countTokens()];
    profileTargetingExpressions = new ProfileTargetingExpression[tokenizer.countTokens()];
    for (int i = 0; tokenizer.hasMoreTokens(); i++) {
      String expression = tokenizer.nextToken();
      this.profileTargetingExpressionStrings[i] = expression;
      profileTargetingExpressions[i] = new ProfileTargetingExpression(expression);
    }
  }
}
org.milyn.cdrProfileTargetingExpression<init>

Popular methods of ProfileTargetingExpression

  • getSpecificity
    Get the specificity of this expression with respect to the supplied profile set. Iterates over this
  • isMatch
    Does this expression match one of the profiles in the supplied profile set.

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now