wt.query.template
Class MergeCellUtility
java.lang.Object
wt.query.template.MergeCellUtility
- public class MergeCellUtility
- extends Object
XSLT extension functions used by mergeQMLCellsToHTML.xsl
Method Summary |
(package private) static int |
countAdditionalMatchingCellsInRow(String cellValue,
Node resultItem,
int position,
Node row,
int maxMatch)
|
static int |
countMatchingRows(Node resultItem,
boolean checkPriorItems,
int position,
Node row,
int maxMatch)
|
(package private) static String |
getElementTextContents(Node node)
Cheats by assuming that a first node descendent (or a first node and so on) which
is also a text (and not cdata) node contains all the characters of interest for
comparison. |
static int |
getFirstNonMatchCellPos(Node row,
int totalColumns)
|
(package private) static int |
getFirstNonMatchCellPos(Node row,
int totalColumns,
int position,
Node resultItem,
Node previousRow)
|
(package private) static Node |
getNextSiblingElement(Node node)
|
(package private) static Node |
getNthElementChild(Node parent,
int position)
|
(package private) static Node |
getPreviousSiblingElement(Node node)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergeCellUtility
public MergeCellUtility()
getFirstNonMatchCellPos
public static int getFirstNonMatchCellPos(Node row,
int totalColumns)
getFirstNonMatchCellPos
static int getFirstNonMatchCellPos(Node row,
int totalColumns,
int position,
Node resultItem,
Node previousRow)
countMatchingRows
public static int countMatchingRows(Node resultItem,
boolean checkPriorItems,
int position,
Node row,
int maxMatch)
countAdditionalMatchingCellsInRow
static int countAdditionalMatchingCellsInRow(String cellValue,
Node resultItem,
int position,
Node row,
int maxMatch)
getPreviousSiblingElement
static Node getPreviousSiblingElement(Node node)
getNextSiblingElement
static Node getNextSiblingElement(Node node)
getNthElementChild
static Node getNthElementChild(Node parent,
int position)
getElementTextContents
static String getElementTextContents(Node node)
- Cheats by assuming that a first node descendent (or a first node and so on) which
is also a text (and not cdata) node contains all the characters of interest for
comparison. This is currently true for the XML and XML processors used, but this
assumption may break in the future -- at which time this routine should be enhanced.
I am not enhancing it now (perhaps unwisely) in favor of performance gains through
this assumption.