public class OpaqueQueryNode extends QueryNodeImpl
OpaqueQueryNode is used for specify values that are not supposed to
be parsed by the parser. For example: and XPATH query in the middle of a
query string a b @xpath:'/bookstore/book[1]/title' c dPLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
OpaqueQueryNode(CharSequence schema,
CharSequence value) |
| Modifier and Type | Method and Description |
|---|---|
QueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree
when you call the cloneTree() method
|
CharSequence |
getSchema() |
CharSequence |
getValue() |
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser
|
String |
toString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
|
add, add, allocate, clone, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, unsetTagpublic OpaqueQueryNode(CharSequence schema, CharSequence value)
schema - - schema identifiervalue - - value that was not parsedpublic String toString()
QueryNodeImpltoString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodepublic QueryNode cloneTree() throws CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class QueryNodeImplCloneNotSupportedExceptionpublic CharSequence getSchema()
public CharSequence getValue()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.