Class NamespaceProduction


  • public class NamespaceProduction
    extends Production
    A production in a specified namespace
    Author:
    bratseth
    • Constructor Detail

      • NamespaceProduction

        public NamespaceProduction​(java.lang.String namespace,
                                   java.lang.String key,
                                   java.lang.String value)
        Creates a produced template term with no label and the default type
    • Method Detail

      • getNamespace

        public java.lang.String getNamespace()
      • setNamespace

        public final void setNamespace​(java.lang.String namespace)
      • getKey

        public java.lang.String getKey()
      • setKey

        public void setKey​(java.lang.String key)
      • getValue

        public java.lang.String getValue()
      • setValue

        public void setValue​(java.lang.String value)
      • produce

        public void produce​(RuleEvaluation e,
                            int offset)
        Description copied from class: Production
        Produces this at the current match
        Specified by:
        produce in class Production
        Parameters:
        e - the evaluation context containing the current match and the query
        offset - the offset position at which to produce this. Offsets are used to produce multiple items at one position, inserted in the right order.
      • toInnerString

        public java.lang.String toInnerString()
        All instances of this produces a parseable string output
        Specified by:
        toInnerString in class Production