Examples of addBinding()


Examples of org.openrdf.query.impl.MapBindingSet.addBinding()

  private TupleResult createQueryResult() {
    List<String> bindingNames = Arrays.asList("a", "b", "c");

    MapBindingSet solution1 = new MapBindingSet(bindingNames.size());
    solution1.addBinding("a", new URIImpl("foo:bar"));
    solution1.addBinding("b", new BNodeImpl("bnode"));
    solution1.addBinding("c", new LiteralImpl("baz"));

    MapBindingSet solution2 = new MapBindingSet(bindingNames.size());
    solution2.addBinding("a", new LiteralImpl("1", XMLSchema.INTEGER));
View Full Code Here

Examples of org.openrdf.query.impl.MapBindingSet.addBinding()

  private TupleResult createQueryResult() {
    List<String> bindingNames = Arrays.asList("a", "b", "c");

    MapBindingSet solution1 = new MapBindingSet(bindingNames.size());
    solution1.addBinding("a", new URIImpl("foo:bar"));
    solution1.addBinding("b", new BNodeImpl("bnode"));
    solution1.addBinding("c", new LiteralImpl("baz"));

    MapBindingSet solution2 = new MapBindingSet(bindingNames.size());
    solution2.addBinding("a", new LiteralImpl("1", XMLSchema.INTEGER));
    solution2.addBinding("c", new LiteralImpl("Hello World!", "en"));
View Full Code Here

Examples of org.openrdf.query.impl.MapBindingSet.addBinding()

    List<String> bindingNames = Arrays.asList("a", "b", "c");

    MapBindingSet solution1 = new MapBindingSet(bindingNames.size());
    solution1.addBinding("a", new URIImpl("foo:bar"));
    solution1.addBinding("b", new BNodeImpl("bnode"));
    solution1.addBinding("c", new LiteralImpl("baz"));

    MapBindingSet solution2 = new MapBindingSet(bindingNames.size());
    solution2.addBinding("a", new LiteralImpl("1", XMLSchema.INTEGER));
    solution2.addBinding("c", new LiteralImpl("Hello World!", "en"));
View Full Code Here

Examples of org.openrdf.query.impl.MapBindingSet.addBinding()

    solution1.addBinding("a", new URIImpl("foo:bar"));
    solution1.addBinding("b", new BNodeImpl("bnode"));
    solution1.addBinding("c", new LiteralImpl("baz"));

    MapBindingSet solution2 = new MapBindingSet(bindingNames.size());
    solution2.addBinding("a", new LiteralImpl("1", XMLSchema.INTEGER));
    solution2.addBinding("c", new LiteralImpl("Hello World!", "en"));

    List<? extends BindingSet> bindingSetList = Arrays.asList(solution1, solution2);

    TupleResultImpl result = new TupleResultImpl(bindingNames, bindingSetList);
View Full Code Here

Examples of org.openrdf.query.impl.MapBindingSet.addBinding()

    solution1.addBinding("b", new BNodeImpl("bnode"));
    solution1.addBinding("c", new LiteralImpl("baz"));

    MapBindingSet solution2 = new MapBindingSet(bindingNames.size());
    solution2.addBinding("a", new LiteralImpl("1", XMLSchema.INTEGER));
    solution2.addBinding("c", new LiteralImpl("Hello World!", "en"));

    List<? extends BindingSet> bindingSetList = Arrays.asList(solution1, solution2);

    TupleResultImpl result = new TupleResultImpl(bindingNames, bindingSetList);
View Full Code Here

Examples of org.speakright.core.IModelBinder.addBinding()

      if (flow instanceof ITransparentFlowWrapper) {
        ITransparentFlowWrapper wrap = (ITransparentFlowWrapper)flow;
        flow = wrap.innerFlow();
      }
     
      binder.addBinding(flow, spec.m_slotName, spec.m_target);
    }   
   
    String value = grammar.m_gtext;
   
    //step 3. evaluate value items
View Full Code Here

Examples of org.speakright.core.flows.QuestionFlow.addBinding()

//      flow.addBinding("confirm", "city");
//      InlineGrammar gram = new InlineGrammar("yes no");
//      gram.setSlotName("confirm");
//      flow.addGrammar(gram);
      flow.addGrammar("grammar/gram1.grxml");
      flow.addBinding("MySlot", "city"); //must be after add gram
     
      add(flow);
//      SRAskNumber ask  = new SRAskNumber("how many bottles?", "bottles", 3, 10);
//      ask.setMin(3);
//      ask.setMax(10);
View Full Code Here

Examples of org.speakright.core.render.Grammar.addBinding()

   *   <code>public void setCity(String value);</code> 
   */
  public void addBinding(String slotName, String modelVar)
  {
    Grammar gram = m_quest.grammar();
    gram.addBinding(slotName, modelVar);
  }
 

  /**
   * Create the type-specific renderer
View Full Code Here

Examples of org.speakright.core.render.InlineGrammar.addBinding()

        flow.add(new PFlow("and now the SECOND page of my speech application."));
//        flow.add(new QFlow("abc.grxml", "what size is it?"));

        QuestionFlow qflow = new QuestionFlow("", "what size? {audio:welcome.wav}");
    InlineGrammar gram = new InlineGrammar("yes no");
    gram.addBinding("confirm", "city");
    qflow.addGrammar(gram);
    flow.add(qflow);
       
        flow.add(new PFlow("back from the big question. City is {$M.city} {audio:audio/Greeting.wav}"));
        return flow;
View Full Code Here

Examples of org.springframework.richclient.form.builder.FormLayoutFormBuilder.addBinding()

    formBuilder.addPropertyAndLabel("contactType");
    formBuilder.nextRow();
        NumberBinder binder = new NumberBinder();
        binder.setLeftDecoration("€");
        formBuilder.addLabel("monthlyIncome");
        formBuilder.addBinding(binder.bind(getFormModel(), "monthlyIncome", new HashMap()), 3);
    formBuilder.nextRow();
    formBuilder.addHorizontalSeparator("Address", 7);
    formBuilder.nextRow();
    formBuilder.addPropertyAndLabel("address.address1");
    formBuilder.nextRow();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.