T - the return type for the visitorpublic interface QueryVisitor<T>
To use a QueryVisitor, call the Query.accept(net.cnri.repository.search.QueryVisitor<T>) method on a Query, with the QueryVisitor as parameter.
To implement a QueryVisitor, implement the visit... methods for each query type. Recursive instances (such as BooleanQuery)
are handled by passing the QueryVisitor as this to each subquery's accept method.
| Modifier and Type | Method and Description |
|---|---|
T |
visitAttributeQuery(AttributeQuery query) |
T |
visitBooleanQuery(BooleanQuery query) |
T |
visitElementAttributeQuery(ElementAttributeQuery query) |
T |
visitMatchAllObjectsQuery(MatchAllObjectsQuery query) |
T |
visitRawQuery(RawQuery query) |
T visitRawQuery(RawQuery query) throws RepositoryException
RepositoryExceptionT visitMatchAllObjectsQuery(MatchAllObjectsQuery query) throws RepositoryException
RepositoryExceptionT visitBooleanQuery(BooleanQuery query) throws RepositoryException
RepositoryExceptionT visitAttributeQuery(AttributeQuery query) throws RepositoryException
RepositoryExceptionT visitElementAttributeQuery(ElementAttributeQuery query) throws RepositoryException
RepositoryException