Codota Logo
ContextItems.getSuffixes
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Reference (javax.naming)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
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