public static final class QuerySupport.Query.Factory extends Object
Modifier and Type | Method and Description |
---|---|
QuerySupport.Query |
and(QuerySupport.Query... queries)
Creates a boolean AND query.
|
QuerySupport.Query |
field(String fieldName,
String fieldValue,
QuerySupport.Kind kind)
Creates a query for required field value.
|
QuerySupport.Query |
file(FileObject file)
Creates a query for documents created for a file.
|
QuerySupport.Query |
file(String relativePath)
Creates a query for documents created for a file.
|
QuerySupport.Query |
or(QuerySupport.Query... queries)
Creates a boolean OR query.
|
QuerySupport.Query.Factory |
setCamelCasePart(String camelCasePart)
Sets a camel case part.
|
QuerySupport.Query.Factory |
setCamelCaseSeparator(String camelCaseSeparator)
Sets a camel case separator.
|
@NonNull public QuerySupport.Query field(@NonNull String fieldName, @NonNull String fieldValue, @NonNull QuerySupport.Kind kind)
fieldName
- the name of the tested fieldfieldValue
- the required value of the tested fieldkind
- the kind of the query@NonNull public QuerySupport.Query file(@NonNull String relativePath)
relativePath
- the relative path from source root
the QuerySupport
was created for@NonNull public QuerySupport.Query file(@NonNull FileObject file)
file
- the file under a source root the QuerySupport
was created forIllegalArgumentException
- if the file is not under the QuerySupport
roots@NonNull public QuerySupport.Query and(@NonNull QuerySupport.Query... queries)
queries
- the queries to compose into the AND query@NonNull public QuerySupport.Query or(@NonNull QuerySupport.Query... queries)
queries
- the queries to compose into the OR query@NonNull public QuerySupport.Query.Factory setCamelCaseSeparator(@NullAllowed String camelCaseSeparator)
camelCaseSeparator
- the regular expression for camel case separator.
When null the default (upper case letter) is used.QuerySupport.Query.Factory
@NonNull public QuerySupport.Query.Factory setCamelCasePart(@NullAllowed String camelCasePart)
camelCasePart
- the regular expression for camel case part.
When null the default (lower case letter, digit) is used.QuerySupport.Query.Factory