Tabnine Logo
SuperProperties.normalize
Code IndexAdd Tabnine to your IDE (free)

How to use
normalize
method
in
org.apache.openejb.util.SuperProperties

Best Java code snippets using org.apache.openejb.util.SuperProperties.normalize (Showing top 20 results out of 315)

origin: org.apache.geronimo.ext.openejb/openejb-core

private Object normalize(Object key){
  if (key instanceof String) {
    return normalize((String)key);
  }
  return key;
}
origin: org.apache.tomee/openejb-core

private Object normalize(final Object key) {
  if (key instanceof String) {
    return normalize((String) key);
  }
  return key;
}
origin: org.apache.openejb/openejb-core

@Override
public Object get(Object key) {
  key = normalize(key);
  return properties.get(key);
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public boolean containsKey(Object key) {
  key = normalize(key);
  return properties.containsKey(key);
}
origin: org.apache.openejb/openejb-core

@Override
public boolean containsKey(Object key) {
  key = normalize(key);
  return properties.containsKey(key);
}
origin: org.apache.openejb/openejb-core

private Object normalize(final Object key) {
  if (STRING.isInstance(key)) {
    return normalize(STRING.cast(key));
  }
  return key;
}
origin: org.apache.tomee/openejb-core

public Object get(Object key) {
  key = normalize(key);
  return properties.get(key);
}
origin: org.apache.tomee/openejb-core

public boolean containsKey(Object key) {
  key = normalize(key);
  return properties.containsKey(key);
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public Object get(Object key) {
  key = normalize(key);
  return properties.get(key);
}
origin: org.apache.tomee/openejb-core

public Object remove(Object key) {
  key = normalize(key);
  comments.remove(key);
  attributes.remove(key);
  return properties.remove(key);
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public Object remove(Object key) {
  key = normalize(key);
  comments.remove(key);
  attributes.remove(key);
  return properties.remove(key);
}
origin: org.apache.geronimo.ext.openejb/openejb-core

/**
 * Sets the comment associated with a property.
 * @param name the property name; not null
 * @param comment the comment; not null
 */
public void setComment(String name, String comment) {
  if (name == null) throw new NullPointerException("name is null");
  if (comment == null) throw new NullPointerException("comment is null");
  name = normalize(name);
  comments.put(name, comment);
}
origin: org.apache.openejb/openejb-core

@Override
public Object remove(Object key) {
  key = normalize(key);
  comments.remove(key);
  attributes.remove(key);
  return properties.remove(key);
}
origin: org.apache.tomee/openejb-core

public Object put(Object key, final Object value) {
  key = normalize(key);
  if (key instanceof String) {
    final String name = (String) key;
    if (!attributes.containsKey(name)) {
      attributes.put(name, new LinkedHashMap<String, String>());
    }
  }
  return properties.put(key, value);
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public Object put(Object key, Object value) {
  key = normalize(key);
  if (key instanceof String) {
    String name = (String) key;
    if (!attributes.containsKey(name)) {
      attributes.put(name, new LinkedHashMap<String,String>());
    }
  }
  return properties.put(key, value);
}
origin: org.apache.openejb/openejb-core

@Override
public Object put(Object key, final Object value) {
  key = normalize(key);
  if (STRING.isInstance(key)) {
    final String name = STRING.cast(key);
    if (!attributes.containsKey(name)) {
      attributes.put(name, new LinkedHashMap<String, String>());
    }
  }
  return properties.put(key, value);
}
origin: org.apache.geronimo.ext.openejb/openejb-core

public void putAll(Map<?, ?> t) {
  for (Map.Entry<?, ?> entry : t.entrySet()) {
    put(entry.getKey(), entry.getValue());
  }
  if (t instanceof SuperProperties) {
    SuperProperties superProperties = (SuperProperties) t;
    for (Map.Entry<String, String> entry : superProperties.comments.entrySet()) {
      comments.put(normalize(entry.getKey()), entry.getValue());
    }
    for (Map.Entry<String, LinkedHashMap<String, String>> entry : superProperties.attributes.entrySet()) {
      attributes.put(normalize(entry.getKey()), entry.getValue());
    }
  }
}
origin: org.apache.tomee/openejb-core

public void putAll(final Map<?, ?> t) {
  for (final Map.Entry<?, ?> entry : t.entrySet()) {
    put(entry.getKey(), entry.getValue());
  }
  if (t instanceof SuperProperties) {
    final SuperProperties superProperties = (SuperProperties) t;
    for (final Map.Entry<String, String> entry : superProperties.comments.entrySet()) {
      comments.put(normalize(entry.getKey()), entry.getValue());
    }
    for (final Map.Entry<String, LinkedHashMap<String, String>> entry : superProperties.attributes.entrySet()) {
      attributes.put(normalize(entry.getKey()), entry.getValue());
    }
  }
}
origin: org.apache.openejb/openejb-core

@Override
public void putAll(final Map<?, ?> t) {
  for (final Map.Entry<?, ?> entry : t.entrySet()) {
    put(entry.getKey(), entry.getValue());
  }
  if (t instanceof SuperProperties) {
    final SuperProperties superProperties = (SuperProperties) t;
    for (final Map.Entry<String, String> entry : superProperties.comments.entrySet()) {
      comments.put(normalize(entry.getKey()), entry.getValue());
    }
    for (final Map.Entry<String, LinkedHashMap<String, String>> entry : superProperties.attributes.entrySet()) {
      attributes.put(normalize(entry.getKey()), entry.getValue());
    }
  }
}
origin: org.apache.geronimo.ext.openejb/openejb-core

/**
 * Searches for the comment associated with the specified property. If the property is not found, look
 * in the default properties. If the property is not found in the default properties, answer null.
 *
 * @param name the name of the property to find
 * @return the named property value
 */
public String getComment(String name) {
  name = normalize(name);
  String comment = comments.get(name);
  if (comment == null && defaults instanceof SuperProperties) {
    comment = ((SuperProperties) defaults).getComment(name);
  }
  return comment;
}
org.apache.openejb.utilSuperPropertiesnormalize

Popular methods of SuperProperties

  • <init>
    Constructs a new Properties object using the specified default properties.
  • caseInsensitive
  • entrySet
    Returns an unmodifiable view of the entries.
  • getProperty
  • putAll
  • containsKey
  • decodeEscapeChar
  • decodeNextCharacter
  • dumpComment
  • dumpString
  • get
  • getAttributes
    Searches for the attributes associated with the specified property. If the property is not found, lo
  • get,
  • getAttributes,
  • getComment,
  • getDocumentBuilder,
  • isEmpty,
  • keySet,
  • keys,
  • propertyNames,
  • put

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Best plugins for Eclipse
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