public interface Criteria
Modifier and Type | Method and Description |
---|---|
Criteria |
add(Criteria criteria)
Adds restriction for deeper level of elements.
|
boolean |
match(Element element)
This method checks if element match to conditions.
|
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 addboolean match(Element element) throws XMLException
element
- element to checktrue
if element match.XMLException
Copyright © 2006–2023 Tigase. All rights reserved.