net.axyana.qizxopen.dm
Class FulltextQuery.Hiliter
java.lang.Object
net.axyana.qizxopen.dm.FulltextQuery.Hiliter
- Enclosing class:
- FulltextQuery
- public class FulltextQuery.Hiliter
- extends java.lang.Object
Defines the way highlighted words are decorated: a highlighted word
is surrounded by an element of the form word, where N
is the rank of the fulltext clause (phrase or alternative of terms),
E is the 'element' field of this hiliter (a QName with default value "span"),
A is the 'attribute' field (a QName with default value "class"), and
pattern is a string prefix to the attribute value (by default empty).
may also carry elements to highlight specifically (set by addMatchingArea),
by default the whole root fragment may be highlighted.
Method Summary |
void |
addMatchingArea(Node area)
Defines a particular element to highlight inside the root fragment. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
element
public QName element
attribute
public QName attribute
pattern
public java.lang.String pattern
FulltextQuery.Hiliter
public FulltextQuery.Hiliter()
addMatchingArea
public void addMatchingArea(Node area)
- Defines a particular element to highlight inside the root fragment.