Codota Logo
ProfileTargetingExpression.<init>
Code IndexAdd Codota 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)

  • Common ways to obtain ProfileTargetingExpression
private void myMethod () {
ProfileTargetingExpression p =
  • Codota IconString expression;new ProfileTargetingExpression(expression)
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Option (scala)
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