|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.util.WcmVerityParser
This class interprets a text input line, along with a modifier, and produces
XML used in Stored Searches, Search Templates and for execution of Search Templates.
The text input line can contain any valid alphanumeric characters, plus the following:
- !word - indicates that 'word' should be excluded
- w*d - indicates that any words beginning with 'w' and ending with 'd' will be
found
- "my phrase" - double quotes (must be in a pair) comprise a phrase, the contents
- of which is preserved.
The XML that's returned will look something like:
Field Summary | |
static java.lang.String |
ALL
|
static java.lang.String |
ANY
|
static java.lang.String |
IN_ZONE
|
static java.lang.String |
NEAR
|
static java.lang.String |
NONE
|
static java.lang.String |
PARAGRAPH
|
static java.lang.String |
SENTENCE
|
static java.lang.String |
VQL
|
Constructor Summary | |
WcmVerityParser(boolean enableEncoding)
Default constructor |
Method Summary | |
java.lang.String |
getErrorMsg()
Gets the current error message string, if any exists. |
static void |
main(java.lang.String[] argv)
The main method of the application. |
org.w3c.dom.Node |
parse(java.util.Locale locale,
java.lang.String text,
java.lang.String modifier,
java.lang.String zoneName)
Parses the text string into the XML format that is used in content searching. |
org.w3c.dom.Node |
parse(java.lang.String text,
java.lang.String modifier,
java.lang.String zoneName)
Parses the text string into the XML format that is used in content searching. |
java.lang.String |
toString()
toString() outputs the contents of the DOM tree in a readable format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String NONE
public static final java.lang.String ALL
public static final java.lang.String ANY
public static final java.lang.String IN_ZONE
public static final java.lang.String NEAR
public static final java.lang.String PARAGRAPH
public static final java.lang.String SENTENCE
public static final java.lang.String VQL
Constructor Detail |
public WcmVerityParser(boolean enableEncoding)
Method Detail |
public org.w3c.dom.Node parse(java.util.Locale locale, java.lang.String text, java.lang.String modifier, java.lang.String zoneName) throws WcmException
text
- accepts a string of one or more words, with or without quotes.
Also accepts one or more wildcard characters (*) in a word, or any word
preceeded by the not character (!).
For example: "Orange County" CA* !Floridamodifier
- accepts any of the following strings: {None, All, Any,
In Zone, Near, Paragraph, Sentence, VQL}zoneName
- is only used when the modifier is "In Zone". Otherwise,
it should be set to an empty string.
WcmException
public java.lang.String getErrorMsg()
public org.w3c.dom.Node parse(java.lang.String text, java.lang.String modifier, java.lang.String zoneName) throws WcmException
text
- accepts a string of one or more words, with or without quotes.
Also accepts one or more wildcard characters (*) in a word, or any word
preceeded by the not character (!).
For example: "Orange County" CA* !Floridamodifier
- accepts any of the following strings: {None, All, Any,
In Zone, Near, Paragraph, Sentence, VQL}zoneName
- is only used when the modifier is "In Zone". Otherwise,
it should be set to an empty string.
WcmException
public java.lang.String toString()
public static void main(java.lang.String[] argv)
argv
- The command line argument to this application.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |