Modifier and Type | Method and Description |
---|---|
static <A,B> Pair<A,B> |
Pair.create(A left,
B right)
Creates an instance of pair with a "left" value and a "right" value.
|
Modifier and Type | Method and Description |
---|---|
static ArrayList<Pair> |
XMLGrep.getPairs(ArrayList<Pair> list,
String xpath)
Finds all pairs that have an XPath which matches a given pattern.
|
static ArrayList<Pair> |
XMLGrep.getSegment(ArrayList<Pair> list,
int startAt,
int endAt)
Extract a copy of a portion of a ArrayList.
|
ArrayList<Pair> |
XMLGrep.getSegment(int startAt,
int endAt)
Extract a copy of a portion of a ArrayList.
|
static ArrayList<Pair> |
XMLParser.getXPathList(String prefix,
ArrayList<String> list)
Get a list of values labeled with an XPath.
|
ArrayList<Pair> |
XMLParser.getXPathPairs()
Return an ArrayList of string Pairs which contains for
each node in the XML document an XPath as the "left" value
of the pair and the value as the "right" value of pair.
|
ArrayList<Pair> |
XMLParser.getXPathPairs(String prefix,
int index)
Return an ArrayList of string Pairs which contains for
each node in the XML document an XPath as the "left" value
of the pair and the value as the "right" value of pair.
|
static ArrayList<Pair> |
XMLGrep.makeIndex(Node node,
String xpath)
Generate an xpath/value/node index.
|
Modifier and Type | Method and Description |
---|---|
static void |
XMLGrep.writeTagged(PrintStream out,
Pair<String,String> item)
Prints an XPath/Value pair to a @link{PrintStream}
|
static void |
XMLGrep.writeTagged(PrintStream out,
Pair<String,String> item,
String pattern)
Prints an XPath/Value pair to a @link{PrintStream}
|
static void |
XMLGrep.writeXMLTagged(PrintStream out,
Pair<String,String> item,
boolean indent)
Prints an XPath/Value pair to a @link{PrintStream}
|
Modifier and Type | Method and Description |
---|---|
static void |
XMLGrep.changePath(ArrayList<Pair> list,
String match,
String set)
Change the path for each pair in a list using
a pattern.
|
static int |
XMLGrep.findFirstElement(ArrayList<Pair> list,
String xpath,
int startAt)
Find the first item that has an XPath that begins with a given XPath.
|
static int |
XMLGrep.findLastElement(ArrayList<Pair> list,
String xpath,
int startAt)
Find the last item that has an XPath that begins with a given XPath.
|
static ArrayList<Integer> |
XMLGrep.getChildNodeIndex(ArrayList<Pair> list,
String xpath)
Finds the index of all child nodes at a given XPath.
|
static ArrayList<String> |
XMLGrep.getChildNodeNames(ArrayList<Pair> list,
String xpath)
Finds the names of all child nodes at a given XPath.
|
static String |
XMLGrep.getFirstValue(ArrayList<Pair> list,
String xpath,
String defaultValue)
Finds the first value that has an XPath which matches a given pattern.
|
static ArrayList<Pair> |
XMLGrep.getPairs(ArrayList<Pair> list,
String xpath)
Finds all pairs that have an XPath which matches a given pattern.
|
static ArrayList<Pair> |
XMLGrep.getSegment(ArrayList<Pair> list,
int startAt,
int endAt)
Extract a copy of a portion of a ArrayList.
|
static ArrayList<String> |
XMLGrep.getValues(ArrayList<Pair> list,
String xpath)
Finds all values that have an XPath which matches a given pattern.
|
static ArrayList<String> |
XMLGrep.getWords(ArrayList<Pair> list)
Get a list of words in the resource.
|
static void |
XMLGrep.makeIndex(ArrayList<Pair> list,
Node node,
String xpath)
Generate an xpath/value index.
|
static void |
XMLGrep.writeTagged(PrintStream out,
ArrayList<Pair> list)
Prints the list of XPath/Value pairs to a @link{PrintStream}
|
static void |
XMLGrep.writeTagged(PrintStream out,
ArrayList<Pair> list,
int startAt,
int endAt)
Prints the list of XPath/Value pairs to a @link{PrintStream}
|
static void |
XMLGrep.writeTagged(PrintStream out,
ArrayList<Pair> list,
int startAt,
int endAt,
String pattern)
Prints the list of XPath/Value pairs to a @link{PrintStream}
|
static void |
XMLGrep.writeTagged(PrintStream out,
ArrayList<Pair> list,
String pattern)
Prints the list of XPath/Value pairs to a @link{PrintStream}
|
static void |
XMLGrep.writeXMLTagged(PrintStream out,
ArrayList<Pair> list)
Prints the list of XPath/Value pairs to a @link{PrintStream}
|
static void |
XMLGrep.writeXMLTagged(PrintStream out,
ArrayList<Pair> list,
int startAt,
int endAt)
Prints the list of XPath/Value pairs to a @link{PrintStream}
|
static void |
XMLGrep.writeXMLTagged(PrintStream out,
ArrayList<Pair> list,
int startAt,
int endAt,
String pattern)
Prints the list of XPath/Value pairs to a @link{PrintStream}
|
static void |
XMLGrep.writeXMLTagged(PrintStream out,
ArrayList<Pair> list,
String pattern)
Prints the list of XPath/Value pairs to a @link{PrintStream}
|
Copyright © 2008-2015 Regents University of California. All Rights Reserved.