Examples of Mapping


Examples of org.jboss.mbui.client.aui.mapping.Mapping

        DataInputOutput connectionAttributes = new DataInputOutput("connectionAttributes", "Connection");
        connectionAttributes.setRole(Edit);
        tabs.add(connectionAttributes);

        // reificationStrategies steps (required)
        Mapping tableMapping = new ResourceMapping("datasourceTable",
                "/profile=${profile}/subsystem=datasources/data-source=*")
                .addAttributes("${resource.name}", "jndi-name", "enabled");

        Mapping editMapping = new ResourceMapping("datasourceForm",
                "/profile=${profile}/subsystem=datasources/data-source=${datasource}")
                .addAttributes("${resource.name}", "jndi-name", "enabled", "driver-name",
                        "share-prepared-statements", "prepared-statements-cache-size");

        table.getEntityContext().addMapping(tableMapping);
View Full Code Here

Examples of org.jboss.mbui.model.mapping.Mapping

            }

            // complement the mapping (i.e. resource address at a higher level)
            if(mapping!=null && parent!=null)
            {
                Mapping parentMapping = parent.findMapping(type);
                if(parentMapping!=null)
                    mapping.complementFrom(parentMapping);
            }

        }
View Full Code Here

Examples of org.jboss.seam.rest.exceptions.Mapping

            addExceptionMapping(mapping);
        }
    }

    private void addExceptionMapping(ExceptionMapping mapping) {
        exceptionMappings.add(new Mapping(mapping.exceptionType(), mapping.status(), mapping.message(), mapping
                .useExceptionMessage(), mapping.interpolateMessage(), mapping.useJaxb()));
    }
View Full Code Here

Examples of org.jboss.soa.esb.services.jbpm.Mapping

  {  
        List<Mapping> mappingList = new ArrayList<Mapping>();
        ConfigTree[] mappingElements = tree.getChildren(Constants.MAPPING_TAG);
        if (mappingElements != null) {
            for (ConfigTree mappingElement : mappingElements) {
                Mapping mapping = Mapping.parseMappingElement(mappingElement);
                mappingList.add(mapping);
            }
        }
    return mappingList;
  }
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.Mapping

      targetTreeComponent=treeMapperMigration.m_oldTargetTree;
    m_table=Maps.newHashMap();
    List<String> mapList=old.getMapList();
    Transform transform=new Transform();
    for (String line : mapList) {
      Mapping m = MapStringFormat.parse(line);
      String targetDE=m.getTargetPath().toString();
      String expr=m.getExpression();
      Node target=targetTreeComponent.findNode_expandTreeIfNotExist(targetDE);
      if(target!=null)m_mappedTargetSet.add(target);
      Set<Node> delist=Utils.getSourceExpressionList(sourceTreeComponent, expr, transform);
      if(delist==null)delist=Sets.newHashSet();
      m_mappedSourceSet.addAll(delist);
View Full Code Here

Examples of org.jongo.marshall.jackson.configuration.Mapping

    public void setUp() throws Exception {
        ObjectMapper mapper = new ObjectMapper(MongoBsonFactory.createFactory());
        Mapping.Builder builder = new Mapping.Builder(mapper);
        builder.registerModule(new BsonModule());
        builder.addModifier(new PropertyModifier());
        Mapping mapping = builder.build();
        projection = new JacksonProjection(mapper);
    }
View Full Code Here

Examples of org.locationtech.geogig.osm.internal.Mapping

            return Optional.absent();
        }
        try {
            List<String> lines = Files.readLines(file, Charsets.UTF_8);
            String s = Joiner.on("\n").join(lines);
            Mapping mapping = Mapping.fromString(s);
            return Optional.of(mapping);
        } catch (IOException e) {
            throw Throwables.propagate(e);
        }
    }
View Full Code Here

Examples of org.mapstruct.ap.model.source.Mapping

                        }

                        PropertyMapping newPropertyMapping = null;
                        ExecutableElement sourceAccessor = getSourceAccessor( targetProperty.getKey(), candidates );
                        if ( sourceAccessor != null ) {
                            Mapping mapping = method.getSingleMappingByTargetPropertyName( targetProperty.getKey() );

                            SourceReference sourceRef = new SourceReference.BuilderFromProperty()
                                    .sourceParameter( sourceParameter )
                                    .type( ctx.getTypeFactory().getReturnType( sourceAccessor ) )
                                    .accessor( sourceAccessor )
                                    .name( targetProperty.getKey() )
                                    .build();

                            newPropertyMapping = new PropertyMappingBuilder()
                                    .mappingContext( ctx )
                                    .souceMethod( method )
                                    .targetAccessor( targetProperty.getValue() )
                                    .targetPropertyName( targetProperty.getKey() )
                                    .sourceReference( sourceRef )
                                    .qualifiers( mapping != null ? mapping.getQualifiers() : null )
                                    .dateFormat( mapping != null ? mapping.getDateFormat() : null )
                                    .build();

                            // candidates are handled
                            candidates.clear();
                        }
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.vine.Mapping

      return;
    }
    Orr.log("VineEditorPanel._saveMappings: " +mappings.size());
    savedMappings = new ArrayList<Mapping>();
    for ( Mapping mm : mappings ) {
      Mapping savedMapping = new Mapping(mm.getLeft(), mm.getRelation(), mm.getRight());
      Map<String, String> md = mm.getMetadata();
      if ( md != null && md.size() > 0 ) {
        Map<String, String> savedMd = new LinkedHashMap<String, String>();
        for ( Entry<String, String> e : md.entrySet() ) {
          savedMd.put(e.getKey(), e.getValue());
        }
        savedMapping.setMetadata(savedMd);
      }
      savedMappings.add(savedMapping);
    }

  }
View Full Code Here

Examples of org.modelmapper.spi.Mapping

  /**
   * Used by PropertyMapBuilder to determine if a skipped mapping exists for the {@code path}. No
   * need to synchronize here since the TypeMap is not exposed publicly yet.
   */
  boolean isSkipped(String path) {
    Mapping mapping = mappings.get(path);
    return mapping != null && mapping.isSkipped();
  }
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.