|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.corona.tools.osgi.FilterHelpers
public class FilterHelpers
Some helpers in creation of service filters.
Constructor Summary | |
---|---|
FilterHelpers()
|
Method Summary | |
---|---|
static java.lang.String |
createFilter(java.lang.String key,
java.lang.Object value)
Creates a simple key - value filter. |
static java.lang.String |
escapeForFilter(java.lang.String str)
Escapes reserved values from filter: [*\()]. |
static java.lang.StringBuffer |
escapeForFilter(java.lang.StringBuffer buf,
java.lang.String str)
Escapes reserved values from filter: [*\()]. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterHelpers()
Method Detail |
---|
public static final java.lang.String escapeForFilter(java.lang.String str)
str
- The filter value to escape. It is not a whole filter, but just a value!
public static final java.lang.StringBuffer escapeForFilter(java.lang.StringBuffer buf, java.lang.String str)
buf
- The buffer where the escaped string will be appended.
If null a new buffer will be created.str
- The filter value to escape. It is not a whole filter, but just a value!
public static final java.lang.String createFilter(java.lang.String key, java.lang.Object value)
key
- The key for filter.value
- The value of the filter. All special chars and wildcards will be escaped.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |