Interface MTPatternQuery
- All Known Subinterfaces:
MTAttributeTypeQuery
,MTColorSchemeQuery
,MTDocumentQuery
,MTDocumentSourceQuery
,MTDocumentTypeQuery
,MTEntityPropertyQuery
,MTImageQuery
,MTLayerTypeQuery
,MTListQuery
,MTModelQuery
,MTSubscriberQuery
,MTSymbolQuery
,MTTimestampQuery
,MTUserQuery
,MTVariableQuery
,MutablePublishProfileQuery
public interface MTPatternQuery
An MT query that can be filtered on a text pattern in
a given language
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Adds string representations of the flags to the given pattern string.static String
removeFlags
(String fullPattern) withPattern
(String pattern, MTLanguage language, boolean exactMatch, boolean ignoreCase) Excludes results where the title does not containpattern
as a substring.
-
Method Details
-
withPattern
Excludes results where the title does not containpattern
as a substring.- Parameters:
pattern
- The pattern to search for.language
- The language of the title to find the pattern in.exactMatch
- Require the pattern to match the title exactly rather than containing the pattern.ignoreCase
- Ignores case. This makes "exact match" check lowercase strings for equality and "contains match" check lowercase for contains.
-
addFlags
Adds string representations of the flags to the given pattern string.- Parameters:
pattern
- The string to add flags to.exactMatch
- The non-encoded exact match flag.ignoreCase
- The non-encoded ignore case flag.- Returns:
- The string "pattern" annotated to include information about the flags.
-
removeFlags
-