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.
|
protected Criteria[] crits
public Or(Criteria... criterias)
public 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);
public boolean match(Element element) throws XMLException
match
in interface Criteria
element
- element to checktrue
if element match.XMLException
Copyright © 2006–2023 Tigase. All rights reserved.