@PublicAPI public class MatchCountOptions extends java.lang.Object implements java.io.Serializable, SearchConstants
JChemSearch
.ABS_STEREO_ALWAYS_ON, ABS_STEREO_CHIRAL_FLAG, ABS_STEREO_TABLE_OPTION, ATTACHED_DATA_MATCH_EXACT, ATTACHED_DATA_MATCH_GENERAL, ATTACHED_DATA_MATCH_IGNORE, ATTACHMENT_ATOM, ATTACHMENT_LABEL, ATTACHMENT_MAP, ATTACHMENT_NONE, ATTACHMENT_POINT, ATTACHMENT_RLABEL, CHARGE_MATCHING_DEFAULT, CHARGE_MATCHING_EXACT, CHARGE_MATCHING_IGNORE, DEFAULT_DISSIMILARITY_THRESHOLD, DEFAULT_SEARCHTYPE, DISSIMILARITY_PROPERTY_NAME, DUPLICATE, FULL, FULL_FRAGMENT, HCOUNT_MATCHING_AUTO, HCOUNT_MATCHING_EQUAL, HCOUNT_MATCHING_GREATER_OR_EQUAL, HIT_EXCLUDEDQ, HIT_LP, HIT_MULTICENTER, HIT_NON_R, HIT_ORDERING_NONE, HIT_ORDERING_UNDEF_R_MATCHING_GROUP_FIRST, HIT_R, HIT_R_EMPTY_MATCH, HIT_UNMAPABLE, IMPLICIT_H_MATCHING_DEFAULT, IMPLICIT_H_MATCHING_DISABLED, IMPLICIT_H_MATCHING_ENABLED, IMPLICIT_H_MATCHING_IGNORE, ISOTOPE_MATCHING_DEFAULT, ISOTOPE_MATCHING_EXACT, ISOTOPE_MATCHING_IGNORE, MARKUSH_HIT_INNER, MARKUSH_HIT_ORIGINAL, MATCH_COUNT_BETWEEN, MATCH_COUNT_RELATION, NO_ABAS, NO_SCREEN, POSITION_ON_0TH_HEAVY_ATOM, RADICAL_MATCHING_DEFAULT, RADICAL_MATCHING_EXACT, RADICAL_MATCHING_IGNORE, SEARCH_MODE_NAMES, SEARCH_TYPE_NAMES, SIMILARITY, STEREO_DIASTEREOMER, STEREO_ENANTIOMER, STEREO_EXACT, STEREO_IGNORE, STEREO_MODEL_COMPREHENSIVE, STEREO_MODEL_DEFAULT, STEREO_MODEL_GLOBAL, STEREO_MODEL_LOCAL, STEREO_SPECIFIC, SUBSTRUCTURE, SUPERSTRUCTURE, TAUTOMER_SEARCH_DEFAULT, TAUTOMER_SEARCH_OFF, TAUTOMER_SEARCH_ON, TAUTOMER_SEARCH_ON_IGNORE_TAUTOMERSTEREO, UNDEF_R_MATCHING_ALL, UNDEF_R_MATCHING_GROUP, UNDEF_R_MATCHING_GROUP_H, UNDEF_R_MATCHING_GROUP_H_EMPTY, UNDEF_R_MATCHING_UNDEF_R, VAGUE_BOND_DEFAULT, VAGUE_BOND_LEVEL_HALF, VAGUE_BOND_LEVEL1, VAGUE_BOND_LEVEL2, VAGUE_BOND_LEVEL3, VAGUE_BOND_LEVEL4, VAGUE_BOND_OFF
Constructor and Description |
---|
MatchCountOptions(int hitLimitLow,
boolean isLowerLimitIncluded,
int hitLimitHigh,
boolean isHigherLimitIncluded)
Public constructor for MatchCountOptions in between mode
|
MatchCountOptions(java.lang.String relation,
int hitLimit)
Public constructor for MatchCountOptions in relation mode
|
Modifier and Type | Method and Description |
---|---|
int |
getMatchCountHighLimit() |
int |
getMatchCounthitLimit() |
int |
getMatchCountLowLimit() |
java.lang.String |
getMatchCountRelation() |
int |
getMode() |
boolean |
isMatchCountHighLimitInclusive() |
boolean |
isMatchCountIncludesZero() |
boolean |
isMatchCountLowLimitInclusive() |
void |
setMatchCountHighLimit(int matchCountHighLimit) |
void |
setMatchCountHighLimitInclusive(boolean matchCountHighLimitInclusive) |
void |
setMatchCounthitLimit(int matchCounthitLimit) |
void |
setMatchCountIncludesZero(boolean matchCountIncludesZero) |
void |
setMatchCountLowLimit(int matchCountLowLimit) |
void |
setMatchCountLowLimitInclusive(boolean matchCountLowLimitInclusive) |
void |
setMatchCountRelation(java.lang.String matchCountRelation) |
java.lang.String |
toString() |
public MatchCountOptions(int hitLimitLow, boolean isLowerLimitIncluded, int hitLimitHigh, boolean isHigherLimitIncluded)
hitLimitLow
- The lower limit for the number of hits.isLowerLimitIncluded
- If true, equality is allowed with hitLimitLow.hitLimitHigh
- The upper limit for the number of hits.
If you pass Integer.MAX_VALUE
, it will be treated as infinity.
(I.e. only the lower limit is applied.)isHigherLimitIncluded
- If true, equality is allowed with hitLimitHigh.public MatchCountOptions(java.lang.String relation, int hitLimit)
relation
- The relational operation of the question. This
operation will be used to compare the number of hits to
hitLimit
. Available values:
hitLimit
.
hitLimit
.
null
disables match count rules.hitLimit
- The limit for the number of hits.public int getMatchCountHighLimit()
public void setMatchCountHighLimit(int matchCountHighLimit)
matchCountHighLimit
- the matchCountHighLimit to setpublic boolean isMatchCountHighLimitInclusive()
public void setMatchCountHighLimitInclusive(boolean matchCountHighLimitInclusive)
matchCountHighLimitInclusive
- the matchCountHighLimitInclusive to setpublic int getMatchCounthitLimit()
public void setMatchCounthitLimit(int matchCounthitLimit)
matchCounthitLimit
- the matchCounthitLimit to setpublic boolean isMatchCountIncludesZero()
public void setMatchCountIncludesZero(boolean matchCountIncludesZero)
matchCountIncludesZero
- the matchCountIncludesZero to setpublic int getMatchCountLowLimit()
public void setMatchCountLowLimit(int matchCountLowLimit)
matchCountLowLimit
- the matchCountLowLimit to setpublic boolean isMatchCountLowLimitInclusive()
public void setMatchCountLowLimitInclusive(boolean matchCountLowLimitInclusive)
matchCountLowLimitInclusive
- the matchCountLowLimitInclusive to setpublic int getMode()
public java.lang.String getMatchCountRelation()
public void setMatchCountRelation(java.lang.String matchCountRelation)
matchCountRelation
- the matchCountRelation to setpublic java.lang.String toString()
toString
in class java.lang.Object