|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Criteria
Base interface to check if given stanza may be processed by specific module. This class is used by XmppModule and XmppModulesManager to check what modules can handle received stanza.
| Method Summary | |
|---|---|
Criteria |
add(Criteria criteria)
Adds restriction for deeper level of elements. |
boolean |
match(Element element)
This method checks if element match to conditions. |
| Method Detail |
|---|
Criteria add(Criteria criteria)
For example:
If you have structure of elements:
<A><B></B></A>
then, to check elements A and B you should use
construction like this: critToCheckA.add(critToCheckB);
criteria - restriction to add
boolean match(Element element)
throws XMLException
element - element to check
true if element match.
XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||