public class NamespaceProduction extends Production
Modifier and Type | Field and Description |
---|---|
private String |
key
The key ito set in the namespace
|
private String |
namespace
The label in this namespace
|
private String |
value
The value to set in the namespace
|
replacing
Constructor and Description |
---|
NamespaceProduction(String namespace,
String key,
String value)
Creates a produced template term with no label and the default type
|
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
String |
getNamespace() |
String |
getValue() |
void |
produce(RuleEvaluation e,
int offset)
Produces this at the current match
|
void |
setKey(String key) |
void |
setNamespace(String namespace) |
void |
setValue(String value) |
String |
toInnerString()
All instances of this produces a parseable string output
|
addMatchReferences, getPosition, getWeight, setPosition, setReplacing, setWeight, toString
private String namespace
private String key
private String value
public String getNamespace()
public final void setNamespace(String namespace)
public String getKey()
public void setKey(String key)
public String getValue()
public void setValue(String value)
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 String toInnerString()
toInnerString
in class Production
Copyright © 2017. All rights reserved.