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
ConstructorsConstructorDescriptionNamespaceProduction(String namespace, String key, String value) Creates a produced template term with no label and the default type -
Method Summary
Modifier and TypeMethodDescriptiongetKey()getValue()voidproduce(RuleEvaluation e, int offset) Produces this at the current matchvoidfinal voidsetNamespace(String namespace) voidAll 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:ProductionProduces this at the current match- Specified by:
producein 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:
toInnerStringin classProduction
-