Examples of Mapping


Examples of ariba.util.io.Mapping

        }

        MimeTypeFile = new File(SystemUtil.getConfigDirectory(),
                                "MimeTypes.csv");

        MimeTypeMapping = new Mapping(URLUtil.urlAbsolute(MimeTypeFile),
                                      I18NUtil.EncodingASCII,
                                      DefaultMimeType);

        try {
            MimeTypeMapping.read();
View Full Code Here

Examples of at.ssw.coco.core.Mapping

    IPath framesDirPath = getFramesDirPath(resource, sourceDirPath);

    IContainer[] outputContainers = resource.getWorkspace().getRoot()
        .findContainersForLocationURI(outputDirPath.toFile().toURI());
    boolean outputInWorkspace = outputContainers.length != 0; // mapping useful?
    Mapping mapping = outputInWorkspace ? new Mapping() : null;

    // execute Coco
    List<CocoError> errors = execute(filePath.toOSString(),
        framesDirPath.toOSString(), outputDirPath.toOSString(),
        getPackageName(resource, outputDirPath), getTraceString(resource), mapping);
View Full Code Here

Examples of bndtools.bndplugins.repo.git.GitOBRRepo.Mapping

        this.repo = repo;
    }

    @Override
    public boolean get(URIish uri, CredentialItem... items) throws UnsupportedCredentialItem {
        Mapping mapping = repo.findMapping(uri.toString());
        if (mapping != null) {
            for (CredentialItem item : items) {
                if (item instanceof CredentialItem.Username) {
                    ((CredentialItem.Username) item).setValue(mapping.user);
                    continue;
View Full Code Here

Examples of br.com.bfmapper.Mapping

public class ConverterTest extends BaseTest {
   
  @Test
  public void simpleConverter() {
    Carro carro = new Carro(1L, "Uno", "EP", new Pneu(1L, "Pirelli"));
    CarroCanonico carroCanonico = new Mapping().apply(carro).to(CarroCanonico.class);
   
    assertNotNull("Objeto carro não poder ser null", carroCanonico);
    assertNotNull("Propriedade marca não poder ser null", carroCanonico.getMarca());
    assertNotNull("Propriedade modelo não poder ser null", carroCanonico.getModelo());
    assertNotNull("Propriedade pneu não poder ser null", carroCanonico.getPneu());
View Full Code Here

Examples of br.com.objectos.way.etc.Mapping

      return new Global(this);
    }

    @Override
    public User getUser() {
      Mapping userMap = map.getMapping("user");
      return new UserLoader().load(userMap);
    }
View Full Code Here

Examples of cc.redberry.core.indexmapping.Mapping

        result[result.length - 1] = factor;
        return Tensors.multiply(result);
    }

    SubsResult atomicSubstitute(PContent content, ForbiddenContainer forbidden, SubstitutionIterator iterator) {
        Mapping mapping = null;
        int[] indexlessBijection, dataBijection;

        IndexlessBijectionsPort indexlessPort
                = new IndexlessBijectionsPort(fromIndexless, content.indexless);

        while ((indexlessBijection = indexlessPort.take()) != null) {
            mapping = createBijectiveProductPort(fromIndexless, extract(content.indexless, indexlessBijection)).take();
            if (mapping != null)
                break;
        }

        if (mapping == null)
            return null;

        boolean sign = mapping.getSign();
        mapping = null;

        Tensor[] currentData;
        if (content.data instanceof Product) {
            ProductContent currentContent = ((Product) content.data).getContent();
            currentData = currentContent.getDataCopy();
            ProductsBijectionsPort dataPort = new ProductsBijectionsPort(fromContent, currentContent);
            while ((dataBijection = dataPort.take()) != null) {
                mapping = createBijectiveProductPort(fromData, extract(currentData, dataBijection)).take();
                if (mapping != null)
                    break;
            }
        } else {
            if (TensorUtils.isOne(content.data)) {
                if (fromContent.size() != 0)
                    return null;
                dataBijection = new int[0];
                currentData = new Tensor[0];
                mapping = Mapping.IDENTITY;
            } else {
                if (fromContent.size() != 1)
                    return null;
                dataBijection = new int[1];
                currentData = new Tensor[]{content.data};
                mapping = getFirst(fromContent.get(0), content.data);
            }
        }

        if (mapping == null)
            return null;

        mapping = mapping.addSign(sign);
        Arrays.sort(indexlessBijection);
        Arrays.sort(dataBijection);

        Tensor[] indexlessRemainder = new Tensor[content.indexless.length - fromIndexless.length];
        ProductBuilder dataRemainder = new ProductBuilder(0,
                (content.data instanceof Product)
                        ? content.data.size()
                        : 1 - fromContent.size());
        int pivot = 0;
        int i, j = 0;
        for (i = 0; i < content.indexless.length; ++i) {
            if (pivot < indexlessBijection.length && i == indexlessBijection[pivot])
                ++pivot;
            else
                indexlessRemainder[j++] = content.indexless[i];
        }
        pivot = 0;
        for (i = 0; i < currentData.length; ++i) {
            if (pivot < dataBijection.length && i == dataBijection[pivot])
                ++pivot;
            else
                dataRemainder.put(currentData[i]);
        }
        Tensor dataRemainderT = dataRemainder.build();

        PContent remainder = new PContent(indexlessRemainder, dataRemainderT);

        Tensor newTo;
        if (toIsSymbolic)
            newTo = mapping.getSign() ? Tensors.negate(to) : to;
        else {
            if (possiblyAddsDummies) {
                if (forbidden.forbidden == null)
                    forbidden.forbidden = new TIntHashSet(iterator.getForbidden());

                TIntHashSet remainderIndices = new TIntHashSet(forbidden.forbidden);
                remainderIndices.addAll(getAllIndicesNamesT(indexlessRemainder));
                remainderIndices.addAll(getAllIndicesNamesT(dataRemainderT));
                newTo = applyIndexMapping(to, mapping, remainderIndices.toArray());
                forbidden.forbidden.addAll(getAllIndicesNamesT(newTo));
            } else {
                TIntHashSet allowed = new TIntHashSet();
                for (int index : indexlessBijection)
                    allowed.addAll(TensorUtils.getAllDummyIndicesT(content.indexless[index]));
                IndicesBuilder ib = new IndicesBuilder();
                for (int index : dataBijection) {
                    allowed.addAll(TensorUtils.getAllDummyIndicesT(currentData[index]));
                    ib.append(currentData[index]);
                }
                allowed.addAll(ib.getIndices().getNamesOfDummies());
                allowed.removeAll(IndicesUtils.getIndicesNames(mapping.getToData()));
                newTo = applyIndexMappingAndRenameAllDummies(to, mapping, allowed.toArray());
            }
        }
        return new SubsResult(newTo, remainder);
    }
View Full Code Here

Examples of co.nubetech.crux.model.Mapping

public class TestReportDesignAction {

  @Test
  public void testPopulateMappingList(){
    Mapping mapping1 = new Mapping();
    mapping1.setId(121);
    Mapping mapping2 = new Mapping();
    mapping2.setId(122);
    Mapping mapping3 = new Mapping();
    mapping3.setId(123);
       
    ArrayList<Mapping> mappingList = new ArrayList<Mapping>();
    mappingList.add(mapping1);
    mappingList.add(mapping2);
    mappingList.add(mapping3);
View Full Code Here

Examples of com.codingcrayons.aspectfaces.configuration.Mapping

      @Override
      protected String getDelimiter() {
        return File.separator;
      }
    };
    configuration.addMapping(new Mapping("String", "path"));
    configuration.addMapping(new Mapping("Long", "path"));
    configuration.addMapping(new Mapping("Owner", "path"));
    configuration.addMapping(new Mapping("Integer", "path"));
    Settings settings = new Settings();
    configuration.setSettings(settings);
    context.setConfiguration(configuration);
    context.setOrderAnnotation("com.codingcrayons.aspectfaces.annotations.UiFormOrder");
View Full Code Here

Examples of com.dtrules.mapping.Mapping

     * We create an instance that has a reference to this
     * session, but is otherwise identical to the reference
     * mapping.
     */
    public synchronized Mapping getMapping(String filename,IRSession session){
        Mapping map = mappings.get(filename);
        if(map != null)return map.clone(session);
        if(map_paths.indexOf(filename)<0){
            throw new RuntimeException("Bad Mapping File: "+filename+" For the rule set: "+name.stringValue());
        }
        map = Mapping.newMapping(rd, session, filename);
        mappings.put(filename, map);
        return map.clone(session);
    }
View Full Code Here

Examples of com.limelight.input.gamepad.GamepadMapping.Mapping

  }

  public void handleButton(Device device, int buttonId, boolean pressed) {
    GamepadMapping mapping = GamepadSettingsManager.getSettings();

    Mapping mapped = mapping.get(new SourceComponent(Type.BUTTON, buttonId, null));
    if (mapped == null) {
      //LimeLog.info("Unmapped button pressed: " + buttonId);
      return;
    }
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.