public class ReferenceTermProduction extends TermProduction
replacing
Constructor and Description |
---|
ReferenceTermProduction(String reference)
Creates a new produced reference term
|
ReferenceTermProduction(String label,
String reference)
Creates a new produced reference term
|
ReferenceTermProduction(String label,
String reference,
TermType termType)
Creates a new produced reference term
|
ReferenceTermProduction(String reference,
TermType termType)
Creates a new produced reference term
|
Modifier and Type | Method and Description |
---|---|
String |
getReference()
Returns the label of the condition this should take its value from, never null
|
void |
produce(RuleEvaluation e,
int offset)
Produces this at the current match
|
void |
replaceMatches(RuleEvaluation e,
ReferencedMatches referencedMatches) |
void |
setReference(String reference)
The label of the condition this should take its value from, never null
|
String |
toInnerTermString() |
getLabel, getLabelString, getTermType, insertMatch, setLabel, setTermType, toInnerString
getPosition, getWeight, setPosition, setReplacing, setWeight, toString
public ReferenceTermProduction(String reference)
reference
- the label of the condition this should take it's value frompublic ReferenceTermProduction(String reference, TermType termType)
reference
- the label of the condition this should take it's value fromtermType
- the type of the term to producepublic ReferenceTermProduction(String label, String reference)
label
- the label of the produced termreference
- the label of the condition this should take it's value frompublic ReferenceTermProduction(String label, String reference, TermType termType)
label
- the label of the produced termreference
- the label of the condition this should take it's value fromtermType
- the type of term to producepublic void setReference(String reference)
public String getReference()
public void produce(RuleEvaluation e, int offset)
Production
produce
in class Production
e
- the evaluation context containing the current match and the queryoffset
- the offset position at which to produce this. Offsets are used to produce multiple items
at one position, inserted in the right order.public void replaceMatches(RuleEvaluation e, ReferencedMatches referencedMatches)
public String toInnerTermString()
toInnerTermString
in class TermProduction
Copyright © 2018. All rights reserved.