public class Find
extends java.lang.Object
FindHandler
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
data(int node,
java.lang.String pattern)
Deprecated.
Returns all data of the the first node that matches the pattern.
|
static int |
first(int node,
java.lang.String criteria)
Deprecated.
Retrieves the first node that matches the criteria
|
static java.lang.String |
firstData(int node,
java.lang.String pattern,
java.lang.String defaultValue)
Deprecated.
Since BCP 4.2, it is recommended to use firstDataWithDefault
Returns all data of the the first node that matches the pattern.
|
static java.lang.String |
firstDataWithDefault(int node,
java.lang.String pattern,
java.lang.String defaultValue)
Deprecated.
Returns all data of the the first node that matches the pattern.
|
static int |
firstElement(int node,
java.lang.String pattern)
Deprecated.
Returns the first element child of the first node that matches the pattern.
|
static int[] |
firstElements(int node,
java.lang.String pattern)
Deprecated.
Returns the first element children of the nodes that match the pattern.
|
static int |
firstInList(int from,
int to,
java.lang.String criteria)
Deprecated.
Retrieves the first node in the list of nodes that matches the criteria
|
static int |
firstMatch(int node,
java.lang.String pattern)
Deprecated.
Returns the first node that matches the pattern
|
static int |
firstMatchInList(int from,
int to,
java.lang.String pattern)
Deprecated.
Returns the first node that matches the pattern
|
static int |
listCompare(int from1,
int to1,
int from2,
int to2,
int depth,
int flags)
Deprecated.
Use listCompare() method of com.eibus.xml.nom.Node class.
|
static int[] |
match(int node,
java.lang.String pattern)
Deprecated.
Returns a list of xml nodes that match the pattern, as an int array of handles of the matching nodes.
|
static void |
match(int node,
java.lang.String pattern,
FindHandler handler)
Deprecated.
Performs a match operation based on the specified pattern and calls the handler
for each node that matches the pattern.
|
static int |
matchInList(int from,
int to,
java.lang.String pattern)
Deprecated.
Returns a list of xml nodes that match the pattern in the given range of nodes.
|
static boolean |
node(int supposedNode)
Deprecated.
Use isValidNode() method of com.eibus.xml.nom.Node class.
|
static int |
nodes(int node,
java.lang.String criteria,
int maxFound,
int[] numFound)
Deprecated.
|
static int |
setOfSiblingNodes(int node,
java.lang.String criteria,
int maxFound,
int[] numFound)
Deprecated.
|
public static int first(int node, java.lang.String criteria)
node
- int reference of the nodecriteria
- specify name of the node that should be foundpublic static int firstInList(int from, int to, java.lang.String criteria)
from
- int reference of the nodeto
- until which nodecriteria
- specify name of the node that should be foundpublic static int firstMatch(int node, java.lang.String pattern)
node
- The node to start searching in.pattern
- The pattern to match.public static java.lang.String firstData(int node, java.lang.String pattern, java.lang.String defaultValue)
node
- The node to start searching in.pattern
- The pattern to match.defaultValue
- The default value to return if no matching node was foundFind.firstDataWithDefault
public static java.lang.String firstDataWithDefault(int node, java.lang.String pattern, java.lang.String defaultValue)
node
- The node to start searching in.pattern
- The pattern to match.defaultValue
- The default value to return if no matching node was foundpublic static int firstElement(int node, java.lang.String pattern)
node
- The node to start searching in.pattern
- The pattern to match.public static java.lang.String[] data(int node, java.lang.String pattern)
node
- The node to start searching in.pattern
- The pattern to match.public static int[] firstElements(int node, java.lang.String pattern)
node
- The node to start searching in.pattern
- The pattern to match.public static int firstMatchInList(int from, int to, java.lang.String pattern)
from
- The node to start searching in.to
- The last node to search in.pattern
- The pattern to match.public static int[] match(int node, java.lang.String pattern)
node
- The node to start the search in.pattern
- The match-patternpublic static int matchInList(int from, int to, java.lang.String pattern)
from
- The node to start the search.to
- The node to end the search.pattern
- The match-patternpublic static int listCompare(int from1, int to1, int from2, int to2, int depth, int flags)
from1
- the start reference of the first set of nodesto1
- the end reference of the first set of nodesfrom2
- the start reference of the second set of nodesto2
- the end reference of the second set of nodesdepth
- depth until which to compareflags
- This specifies the behavior of the comparisonpublic static int nodes(int node, java.lang.String criteria, int maxFound, int[] numFound)
public static int setOfSiblingNodes(int node, java.lang.String criteria, int maxFound, int[] numFound)
public static boolean node(int supposedNode)
public static void match(int node, java.lang.String pattern, FindHandler handler)
node
- The root to start searching in.pattern
- The match pattern.handler
- The call back object