|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.priha.query.aqt.QueryNode
org.priha.query.aqt.TextsearchQueryNode
public class TextsearchQueryNode
Implements a query node that defines a textsearch clause.
| Field Summary |
|---|
| Fields inherited from class org.priha.query.aqt.QueryNode |
|---|
TYPE_AND, TYPE_DEREF, TYPE_EXACT, TYPE_LOCATION, TYPE_NODETYPE, TYPE_NOT, TYPE_OR, TYPE_ORDER, TYPE_PATH, TYPE_PROP_FUNCTION, TYPE_RELATION, TYPE_ROOT, TYPE_TEXTSEARCH |
| Constructor Summary | |
|---|---|
protected |
TextsearchQueryNode(QueryNode parent,
java.lang.String query)
Creates a new TextsearchQueryNode with a parent
and a textsearch query statement. |
| Method Summary | |
|---|---|
java.lang.Object |
accept(QueryNodeVisitor visitor,
java.lang.Object data)
Accepts a QueryNodeVisitor and calls the apropriate visit
method on the visitor depending on the concrete implementation of
this QueryNode. |
void |
addPathElement(QName element)
Adds a path element to the existing relative path. |
boolean |
equals(java.lang.Object obj)
Returns true if obj is the same type of
QueryNode as this node and is equal to
this node. |
QName |
getPropertyName()
Deprecated. Use getRelativePath() instead. |
java.lang.String |
getQuery()
Returns the textsearch statement. |
boolean |
getReferencesProperty()
|
Path |
getRelativePath()
|
int |
getType()
Returns the type of this node. |
boolean |
needsSystemTree()
Returns true if this query node needs items under
/jcr:system to be queried. |
void |
setPropertyName(QName property)
Deprecated. Use setRelativePath(Path) instead. |
void |
setReferencesProperty(boolean b)
Is set to true, indicates that getRelativePath()
references a property, if set to false indicates that it
references a node. |
void |
setRelativePath(Path relPath)
Sets the relative path to the item where the textsearch is performed. |
| Methods inherited from class org.priha.query.aqt.QueryNode |
|---|
dump, getAttribute, getParent, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TextsearchQueryNode(QueryNode parent,
java.lang.String query)
TextsearchQueryNode with a parent
and a textsearch query statement. The scope of the query
is the fulltext index of the node, that contains all properties.
parent - the parent node of this query node.query - the textsearch statement.| Method Detail |
|---|
public java.lang.Object accept(QueryNodeVisitor visitor,
java.lang.Object data)
throws RepositoryException
QueryNodeVisitor and calls the apropriate visit
method on the visitor depending on the concrete implementation of
this QueryNode.
accept in class QueryNodevisitor - the visitor to call back.data - arbitrary data for the visitor.
visitor.visit() call.
RepositoryExceptionpublic int getType()
getType in class QueryNodepublic java.lang.String getQuery()
public QName getPropertyName()
getRelativePath() instead.
null if the scope is spawned across all properties of a
node. Please note that this method does not return the full relative path
that reference the item to match, but only the name of the final name
element of the path returned by getRelativePath().
null.public void setPropertyName(QName property)
setRelativePath(Path) instead.
property - the name of the property.public Path getRelativePath()
null if the textsearch is
performed on the context node.public void setRelativePath(Path relPath)
relPath is null the textsearch is performed on
the context node.
relPath - the relative path to an item.
java.lang.IllegalArgumentException - if relPath is absolute.public void addPathElement(QName element)
RelationQueryNode.STAR_NAME_TEST.
element - the path element to append.public boolean getReferencesProperty()
true if getRelativePath() references a
property, returns false if it references a node.public void setReferencesProperty(boolean b)
true, indicates that getRelativePath()
references a property, if set to false indicates that it
references a node.
b - flag whether a property is referenced.public boolean equals(java.lang.Object obj)
QueryNodetrue if obj is the same type of
QueryNode as this node and is equal to
this node.
equals in class QueryNodeobj - the reference object with which to compare.
true if obj is equal to
this; false otherwise.public boolean needsSystemTree()
true if this query node needs items under
/jcr:system to be queried.
needsSystemTree in class QueryNodetrue if this query node needs content under
/jcr:system to be queried; false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||