Trispark JDT
2.50.13

com.archimed.dicom.dir
Interface QueryMode


public interface QueryMode

QueryMode is a way of defining how the matching of values take place in DicomDir.query

See Also:
DicomDir.query(QueryTag, QueryMode, String)

Field Summary
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"
 
Method Summary
 boolean match(java.lang.String input, java.lang.String searchPattern)
          override this method to provide your own matching mechanism
 

Field Detail

CASE_SENSITIVE_SUBSTRING

static final QueryMode CASE_SENSITIVE_SUBSTRING
Case sensitive substring matching
examples:


CASE_INSENSITIVE_SUBSTRING

static final QueryMode CASE_INSENSITIVE_SUBSTRING
Case sensitive substring matching
examples:


EXACT

static final QueryMode EXACT
Exact string matching: only matches when the search pattern is exactly the same as the value


CASE_INSENSITIVE

static final QueryMode CASE_INSENSITIVE
Case sensitive string matching
examples:


REGEX_FULL

static final QueryMode REGEX_FULL
Regular expression matching (full pattern)
examples:


REGEX_SUBSTRING

static final QueryMode REGEX_SUBSTRING
Regular expression matching (substring)
examples:


EMPTY

static final QueryMode EMPTY
Empty string matching: only matches 'null' or an empty string


NOT_EMPTY

static final QueryMode NOT_EMPTY
Non-Empty string matching: matches everything but 'null' or an empty string

Method Detail

match

boolean match(java.lang.String input,
              java.lang.String searchPattern)
override this method to provide your own matching mechanism

Parameters:
input - the value of the dicomtag
searchPattern - the search pattern provided in DicomDir.query
Returns:
true for a positive match (DirectoryRecord is retained in the query result)

Trispark JDT
2.50.13

Copyright © 1999-2008 Trispark. All Rights Reserved.