Package com.yahoo.prelude.semantics.rule
Class NamespaceProduction
java.lang.Object
com.yahoo.prelude.semantics.rule.Production
com.yahoo.prelude.semantics.rule.NamespaceProduction
A production in a specified namespace
- Author:
- bratseth
-
Field Summary
Fields inherited from class com.yahoo.prelude.semantics.rule.Production
replacing
-
Constructor Summary
ConstructorDescriptionNamespaceProduction
(String namespace, String key, String value) Creates a produced template term with no label and the default type -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
getValue()
void
produce
(RuleEvaluation e, int offset) Produces this at the current matchvoid
final void
setNamespace
(String namespace) void
All instances of this produces a parseable string outputMethods inherited from class com.yahoo.prelude.semantics.rule.Production
getPosition, getWeight, setPosition, setReplacing, setWeight, toString
-
Constructor Details
-
NamespaceProduction
Creates a produced template term with no label and the default type
-
-
Method Details
-
getNamespace
-
setNamespace
-
getKey
-
setKey
-
getValue
-
setValue
-
produce
Description copied from class:Production
Produces this at the current match- Specified by:
produce
in classProduction
- Parameters:
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.
-
toInnerString
All instances of this produces a parseable string output- Specified by:
toInnerString
in classProduction
-