Examples of addMapping()


Examples of org.platformlayer.federation.FederationMap.addMapping()

      FederationKey host = FederationKey.LOCAL;
      ProjectId project = localClient.getProject();
      FederationMapping mapKey = new FederationMapping(host, project);

      federationMap.addMapping(mapKey, localClient);

      for (PlatformLayerKey mappedService : multitenant.getMappedItems()) {
        FederationMap.Rule rule = new FederationMap.Rule();
        rule.mappedItems = mappedService;
        rule.targetKey = mapKey;
View Full Code Here

Examples of org.sonatype.maven.polyglot.PolyglotModelManager.addMapping()

        final PolyglotModelManager modelManager = new PolyglotModelManager() {
            {
               mappings = new ArrayList<Mapping>();
            }
        };
        modelManager.addMapping( new RubyMapping() );
        rubyModelReader.executeManager = new ExecuteManagerImpl() {
            {
                log = new ConsoleLogger( Logger.LEVEL_INFO, "test" );
                manager = modelManager;
            }
View Full Code Here

Examples of org.springframework.binding.mapping.impl.DefaultMapper.addMapping()

    DefaultMapper attributeMapper = new DefaultMapper();
    ExpressionParser parser = DefaultExpressionParserFactory.getExpressionParser();
    Expression x = parser.parseExpression("attr", new FluentParserContext().evaluate(AttributeMap.class));
    Expression y = parser.parseExpression("flowScope.attr", new FluentParserContext()
        .evaluate(RequestContext.class));
    attributeMapper.addMapping(new DefaultMapping(x, y));
    flow.setInputMapper(attributeMapper);
    MockRequestControlContext context = new MockRequestControlContext(flow);
    LocalAttributeMap sessionInput = new LocalAttributeMap();
    sessionInput.put("attr", "foo");
    flow.start(context, sessionInput);
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions.addMapping()

          entry.createNew(stateClone);
          for (IInputAttribute a : this.outputAttributes) {
            entry.addOutputAttribute((IOutputAttribute) a);
          }
          for (IMapping a : this.outputMapping) {
            entry.addMapping(a);
          }
          stateClone.setOutputMapper(entry);
        }
        else {
          stateClone.removeAllOutputAttribute();
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.InputMapper.addMapping()

          entry.createNew(stateClone);
          for (IInputAttribute a : this.inputAttributes) {
            entry.addInputAttribute(a);
          }
          for (IMapping a : this.inputMapping) {
            entry.addMapping(a);
          }
          stateClone.setInputMapper(entry);
        }
        else {
          stateClone.removeAllInputAttribute();
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.OutputMapper.addMapping()

          entry.createNew(stateClone);
          for (IInputAttribute a : this.outputAttributes) {
            entry.addOutputAttribute((IOutputAttribute) a);
          }
          for (IMapping a : this.outputMapping) {
            entry.addMapping(a);
          }
          stateClone.setOutputMapper(entry);
        }
        else {
          stateClone.removeAllOutputAttribute();
View Full Code Here

Examples of org.tarantool.facade.TarantoolTemplate.addMapping()

    SocketChannelPooledConnectionFactory connectionFactory = new SocketChannelPooledConnectionFactory("localhost", 33313, 1, 10);
    Mapping<User> mapping = new Mapping<User>(User.class, TEMPLATE_SPACE, "id", "phone", "point", "iq", "height", "lifeFormId", "salary", "birthday",
        "name", "sign", "male");

    TarantoolTemplate template = new TarantoolTemplate(connectionFactory);
    template.addMapping(mapping);
    assertNotNull(template.save(user).insertOrReplaceAndGet());
    try {
      template.save(user).insert();
      fail();
    } catch (TarantoolException ignored) {
View Full Code Here

Examples of org.tarantool.facade.TarantoolTemplate7.addMapping()

  @Test
  public void testCycle3() throws MalformedURLException {
    Mapping<User> mapping = new Mapping7<User>(User.class, 125, "id", "phone", "point", "iq", "height", "lifeFormId", "salary", "birthday", "name", "sign",
        "male");
    TarantoolTemplate tpl = new TarantoolTemplate7(new SocketChannelPooledConnectionFactory("localhost", 33313, 1, 10));
    tpl.addMapping(mapping);
    try {
      tpl.find(User.class).condition("string");
      fail();
    } catch (IllegalArgumentException ignored) {
View Full Code Here

Examples of org.teiid.query.sql.util.SymbolMap.addMapping()

        if (updateGroups) {
          SymbolMap newMap = new SymbolMap();
            List<Expression> originalExpressionOrder = symbolMap.getValues();

          for (int i = 0; i < filteredIndex.length; i++) {
            newMap.addMapping(originalOrder.get(filteredIndex[i]), originalExpressionOrder.get(filteredIndex[i]));
      }
            PlanNode sortNode = NodeEditor.findNodePreOrder(sourceNode, NodeConstants.Types.SORT, NodeConstants.Types.PROJECT);
          if (sortNode != null) {
            OrderBy elements = (OrderBy) sortNode.getProperty(NodeConstants.Info.SORT_ORDER);
            for (OrderByItem item : elements.getOrderByItems()) {
View Full Code Here

Examples of stanfordlogic.prover.Substitution.addMapping()

       
        TermVariable v1 = TermVariable.makeTermVariable();
        TermVariable v2 = TermVariable.makeTermVariable();
        TermObject t = TermObject.makeTermObject(256);
       
        s.addMapping( v1, v2 );
        s.addMapping( v2, t );
       
        assertEquals(2, s.numMappings() );
        assertEquals(t, s.getMapping(v1) );
        assertEquals(t, s.getMapping(v2) );
View Full Code Here
TOP
Copyright © 2015 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.