Lines Matching refs:prefix
87 for (String prefix : enabledTypes) {
88 if (type.startsWith(prefix)) {
100 * Enables all the notifications the type of which starts with the specified prefix
102 * <BR>If the specified prefix is already in the list of enabled notification types,
121 * @param prefix The prefix.
122 * @exception java.lang.IllegalArgumentException The prefix parameter is null.
124 public synchronized void enableType(String prefix)
127 if (prefix == null) {
128 throw new IllegalArgumentException("The prefix cannot be null.");
130 if (!enabledTypes.contains(prefix)) {
131 enabledTypes.add(prefix);
136 * Removes the given prefix from the prefix list.
137 * <BR>If the specified prefix is not in the list of enabled notification types,
140 * @param prefix The prefix.
142 public synchronized void disableType(String prefix) {
143 enabledTypes.remove(prefix);