Tabnine Logo
ContextItems.getSuffixes
Code IndexAdd Tabnine to your IDE (free)

How to use
getSuffixes
method
in
org.carewebframework.api.context.ContextItems

Best Java code snippets using org.carewebframework.api.context.ContextItems.getSuffixes (Showing top 6 results out of 315)

origin: org.carewebframework/org.carewebframework.api

/**
 * Returns a map consisting of all suffixes of context items that match the specified prefix.
 * 
 * @param prefix Item name less any suffix.
 * @return Map of all suffixes whose prefix matches the specified value. The value of each map
 *         entry is the value of the original context item.
 */
public Map<String, String> getSuffixes(String prefix) {
  return getSuffixes(prefix, false);
}

origin: org.carewebframework/org.carewebframework.api.core

/**
 * Returns a map consisting of all suffixes of context items that match the specified prefix.
 *
 * @param prefix Item name less any suffix.
 * @return Map of all suffixes whose prefix matches the specified value. The value of each map
 *         entry is the value of the original context item.
 */
public Map<String, String> getSuffixes(String prefix) {
  return getSuffixes(prefix, false);
}
origin: org.carewebframework/org.carewebframework.api.core

/**
 * Returns true if any context item belonging to the specified subject exists.
 *
 * @param subject The subject of interest.
 * @return True if the subject was found.
 */
public boolean containsSubject(String subject) {
  return !getSuffixes(subject, true).isEmpty();
}
origin: org.carewebframework/org.carewebframework.api

/**
 * Returns true if any context item belonging to the specified subject exists.
 * 
 * @param subject The subject of interest.
 * @return True if the subject was found.
 */
public boolean containsSubject(String subject) {
  return !getSuffixes(subject, true).isEmpty();
}

origin: org.carewebframework/org.carewebframework.api.core

/**
 * Remove all context items for the specified subject.
 *
 * @param subject Prefix whose items are to be removed.
 */
public void removeSubject(String subject) {
  String prefix = normalizePrefix(subject);
  for (String suffix : getSuffixes(prefix).keySet()) {
    setItem(prefix + suffix, null);
  }
}
origin: org.carewebframework/org.carewebframework.api

/**
 * Remove all context items for the specified subject.
 * 
 * @param subject Prefix whose items are to be removed.
 */
public void removeSubject(String subject) {
  String prefix = normalizePrefix(subject);
  
  for (String suffix : getSuffixes(prefix).keySet()) {
    setItem(prefix + suffix, null);
  }
}

org.carewebframework.api.contextContextItemsgetSuffixes

Javadoc

Returns a map consisting of all suffixes of context items that match the specified prefix.

Popular methods of ContextItems

  • setItem
    Sets a context item value, qualified with the specified suffix.
  • <init>
  • addItems
    Adds context items to this set.
  • clear
    Clear all context items and the index.
  • getItem
    Retrieves a context item qualified by a suffix.
  • getItemNames
    Returns a set of all item names.
  • lookupItemName
    Performs a case-insensitive lookup of the item name in the index.
  • normalizePrefix
    Normalizes a prefix by appending a "." if necessary and converting to lower case.
  • toString
    Serializes the context item set to a string.

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top Vim plugins
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