|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.handlers.event.EventUtil
public class EventUtil
Utility methods.
Field Summary | |
---|---|
static String |
TOPIC_SEPARATOR
The separator between topics. |
static String |
TOPIC_TOKEN_SEPARATOR
The separator between topics. |
Constructor Summary | |
---|---|
EventUtil()
|
Method Summary | |
---|---|
static boolean |
isValidTopic(String topic)
Check the given topic is valid. |
static boolean |
isValidTopicScope(String topicScope)
Check the given topic scope is valid. |
static boolean |
matches(String topic,
String topicPattern)
Tests that the given topic match with the given topic pattern. |
static boolean |
matches(String topic,
String[] topicPatterns)
Tests that the given topic match with the given topic patterns. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TOPIC_SEPARATOR
public static final String TOPIC_TOKEN_SEPARATOR
Constructor Detail |
---|
public EventUtil()
Method Detail |
---|
public static final boolean matches(String topic, String topicPattern)
topic
- the topic to testtopicPattern
- the topic pattern
public static final boolean matches(String topic, String[] topicPatterns)
topic
- the topic to testtopicPatterns
- the topic patterns
public static final boolean isValidTopicScope(String topicScope)
topicScope
- the topic scope to check.
true
if the given topic scope is valid, false
otherwise.public static final boolean isValidTopic(String topic)
topic
- the topic to check.
true
if the given topic is valid, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |