public class TermCondition extends Condition
Condition.Anchor
Modifier and Type | Field and Description |
---|---|
private String |
term |
private String |
termPlusS |
Constructor and Description |
---|
TermCondition()
Creates an invalid term
|
TermCondition(String term) |
TermCondition(String label,
String term) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doesMatch(RuleEvaluation e)
Returns whether this condition matches the given evaluation
at the current location of the evaluation.
|
String |
getTerm() |
void |
setTerm(String term) |
private String |
termMatches(TermItem queryTerm,
boolean stemming)
Returns a non-null replacement term if there is a match, null otherwise
|
private boolean |
termMatchesWithStemming(String queryTermString) |
String |
toInnerString()
All instances of this produces a parseable string output
|
getAnchor, getContextName, getLabel, getLabelString, getMatchInfo, getMatchInfoString, getNameSpace, getParent, hasOpenChoicepoint, isDefaultContextName, isReferable, labelMatches, labelMatches, makeReferences, matches, matchesEndAnchor, matchesStartAnchor, postMatchHook, preMatchHook, setAnchor, setContextName, setLabel, setNameSpace, setParent, toString, traceResult
public TermCondition()
public TermCondition(String term)
public String getTerm()
public void setTerm(String term)
protected boolean doesMatch(RuleEvaluation e)
Condition
private String termMatches(TermItem queryTerm, boolean stemming)
private boolean termMatchesWithStemming(String queryTermString)
public String toInnerString()
Condition
toInnerString
in class Condition
Copyright © 2017. All rights reserved.