public interface QueryMode
DicomDir.query
Modifier and Type | Field and Description |
---|---|
static QueryMode |
CASE_INSENSITIVE
Case sensitive string matching
examples: "John Doe" matches "John Doe" "john doe" matches "John Doe" "Johnny Doe" does not match "John Doe" "John" does not match "John Doe" |
static QueryMode |
CASE_INSENSITIVE_SUBSTRING
Case sensitive substring matching
examples: "John" matches "John Doe" "doe" matches "John Doe" "Johnny Doe" does not match "John Doe" |
static QueryMode |
CASE_SENSITIVE_SUBSTRING
Case sensitive substring matching
examples: "John" matches "John Doe" "Doe" matches "John Doe" "doe" does not match "John Doe" |
static QueryMode |
EMPTY
Empty string matching: only matches 'null' or an empty string
|
static QueryMode |
EXACT
Exact string matching: only matches when the search pattern is exactly the same as the value
|
static QueryMode |
NOT_EMPTY
Non-Empty string matching: matches everything but 'null' or an empty string
|
static QueryMode |
REGEX_FULL
Regular expression matching (full pattern)
examples: "[\w ]+" matches "John Doe" "John.*" matches "John Doe" "John" does not match "John Doe" "[\w]{4}" does not match "John Doe" |
static QueryMode |
REGEX_SUBSTRING
Regular expression matching (substring)
examples: "[\w ]+" matches "John Doe" "John" matches "John Doe" "\d+" does not match "John Doe" |
Modifier and Type | Method and Description |
---|---|
boolean |
match(java.lang.String input,
java.lang.String searchPattern)
override this method to provide your own matching mechanism
|
static final QueryMode CASE_SENSITIVE_SUBSTRING
static final QueryMode CASE_INSENSITIVE_SUBSTRING
static final QueryMode EXACT
static final QueryMode CASE_INSENSITIVE
static final QueryMode REGEX_FULL
static final QueryMode REGEX_SUBSTRING
static final QueryMode EMPTY
static final QueryMode NOT_EMPTY
boolean match(java.lang.String input, java.lang.String searchPattern)
input
- the value of the dicomtagsearchPattern
- the search pattern provided in DicomDir.query