Tabnine Logo
StrLookup.mapLookup
Code IndexAdd Tabnine to your IDE (free)

How to use
mapLookup
method
in
org.apache.commons.lang.text.StrLookup

Best Java code snippets using org.apache.commons.lang.text.StrLookup.mapLookup (Showing top 20 results out of 315)

origin: commons-lang/commons-lang

/**
 * Creates a new instance and initializes it. Uses defaults for variable
 * prefix and suffix and the escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 */
public StrSubstitutor(Map valueMap) {
  this(StrLookup.mapLookup(valueMap), DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE);
}
origin: commons-lang/commons-lang

/**
 * Creates a new instance and initializes it.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @param escape  the escape character
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix, char escape) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, escape);
}
origin: commons-lang/commons-lang

/**
 * Creates a new instance and initializes it. Uses a default escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, DEFAULT_ESCAPE);
}
origin: org.apache.commons/com.springsource.org.apache.commons.lang

/**
 * Creates a new instance and initializes it. Uses a default escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, DEFAULT_ESCAPE);
}
origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.lang

/**
 * Creates a new instance and initializes it. Uses a default escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, DEFAULT_ESCAPE);
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a new instance and initializes it.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @param escape  the escape character
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix, char escape) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, escape);
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Creates a new instance and initializes it. Uses defaults for variable
 * prefix and suffix and the escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 */
public StrSubstitutor(Map valueMap) {
  this(StrLookup.mapLookup(valueMap), DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Creates a new instance and initializes it. Uses defaults for variable
 * prefix and suffix and the escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 */
public StrSubstitutor(Map valueMap) {
  this(StrLookup.mapLookup(valueMap), DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Creates a new instance and initializes it.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @param escape  the escape character
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix, char escape) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, escape);
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a new instance and initializes it. Uses defaults for variable
 * prefix and suffix and the escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 */
public StrSubstitutor(Map valueMap) {
  this(StrLookup.mapLookup(valueMap), DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE);
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a new instance and initializes it. Uses a default escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, DEFAULT_ESCAPE);
}
origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.lang

/**
 * Creates a new instance and initializes it.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @param escape  the escape character
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix, char escape) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, escape);
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Creates a new instance and initializes it. Uses a default escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, DEFAULT_ESCAPE);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Creates a new instance and initializes it. Uses a default escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, DEFAULT_ESCAPE);
}
origin: org.apache.commons/com.springsource.org.apache.commons.lang

/**
 * Creates a new instance and initializes it. Uses defaults for variable
 * prefix and suffix and the escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 */
public StrSubstitutor(Map valueMap) {
  this(StrLookup.mapLookup(valueMap), DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE);
}
origin: org.apache.commons/com.springsource.org.apache.commons.lang

/**
 * Creates a new instance and initializes it.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @param escape  the escape character
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix, char escape) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, escape);
}
origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.lang

/**
 * Creates a new instance and initializes it. Uses defaults for variable
 * prefix and suffix and the escaping character.
 *
 * @param valueMap  the map with the variables' values, may be null
 */
public StrSubstitutor(Map valueMap) {
  this(StrLookup.mapLookup(valueMap), DEFAULT_PREFIX, DEFAULT_SUFFIX, DEFAULT_ESCAPE);
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Creates a new instance and initializes it.
 *
 * @param valueMap  the map with the variables' values, may be null
 * @param prefix  the prefix for variables, not null
 * @param suffix  the suffix for variables, not null
 * @param escape  the escape character
 * @throws IllegalArgumentException if the prefix or suffix is null
 */
public StrSubstitutor(Map valueMap, String prefix, String suffix, char escape) {
  this(StrLookup.mapLookup(valueMap), prefix, suffix, escape);
}
origin: ingenieux/beanstalker

private void configureInternal() throws Exception {
 Properties properties = new Properties();
 properties.load(getClass().getResourceAsStream("/test.properties"));
 for (Object o : System.getProperties().keySet()) {
  properties.put("" + o, System.getProperty("" + o));
 }
 bind(Properties.class).toInstance(properties);
 StrSubstitutor sub = new StrSubstitutor(StrLookup.mapLookup(properties));
 bind(StrSubstitutor.class).toInstance(sub);
}
origin: com.adobe.acs/acs-aem-commons-bundle

private Email getEmail(final MailTemplate mailTemplate,
            final Class<? extends Email> mailType,
            final Map<String, String> params) throws EmailException, MessagingException, IOException {
  final Email email = mailTemplate.getEmail(StrLookup.mapLookup(params), mailType);
  if (params.containsKey(EmailServiceConstants.SENDER_EMAIL_ADDRESS)
      && params.containsKey(EmailServiceConstants.SENDER_NAME)) {
    email.setFrom(
        params.get(EmailServiceConstants.SENDER_EMAIL_ADDRESS),
        params.get(EmailServiceConstants.SENDER_NAME));
  } else if (params.containsKey(EmailServiceConstants.SENDER_EMAIL_ADDRESS)) {
    email.setFrom(params.get(EmailServiceConstants.SENDER_EMAIL_ADDRESS));
  }
  return email;
}
org.apache.commons.lang.textStrLookupmapLookup

Javadoc

Returns a lookup which looks up values using a map.

If the map is null, then null will be returned from every lookup. The map result object is converted to a string using toString().

Popular methods of StrLookup

  • lookup
    Looks up a String key to a String value. The internal implementation may use any mechanism to return
  • systemPropertiesLookup
    Returns a lookup which uses System#getProperties()to lookup the key to value. If a security manager
  • noneLookup
    Returns a lookup which always returns null.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Path (java.nio.file)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • CodeWhisperer 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