Examples of addMapping()


Examples of au.org.intersect.samifier.domain.FileBasedProteinToOLNMap.addMapping()

                    throw new ProteinToOLNMappingFileParsingException(
                            "Line "
                                    + lineNumber
                                    + " not in expected format, should be: ordered_locus_name accession_id protein_name id");
                }
                proteinOLN.addMapping(parts[2], parts[0]);
            }
        } finally {
            if (reader != null) {
                reader.close();
            }
View Full Code Here

Examples of br.com.datawatcher.entity.DataWatcher.addMapping()

        log.info("Mapping folder to DataWatcher. Folder: " + mappedFolder.getCanonicalPath());
       
        folder.setRegexFilter(HPIConstants.REGEX_FILE);
        folder.setCheckChange(new CheckChange(HPIConstants.DATA_WATCHER_CRON_EXPRESSION));
        folder.addListeners(new Listener(MappedFolderListener.class.getName()));
        dataWatcher.addMapping(folder);
      }
     
      log.info("Starting DataWatcher.");
      dataWatcher.start();
    } catch (Exception e) {
View Full Code Here

Examples of ch.inftec.ju.util.persistable.GenericMementoUtils.TypeHandlerBuilder.addMapping()

   
    // Check default instantiation
    Assert.assertEquals(TypeHandler1.class, builder.getHandler().newInstance(TypeHandler1.class.getName()).getClass());
   
    // Check automatic mapping without field
    builder.addMapping(TypeHandler1.class);
    Assert.assertEquals(TypeHandler1.class.getName(), builder.getHandler().getTypeName(th1));
   
    // Check automatic mapping with field
    builder.addMapping(TypeHandler2.class);
    Assert.assertEquals("H2", builder.getHandler().getTypeName(th2));
View Full Code Here

Examples of com.aelitis.azureus.plugins.upnp.UPnPPlugin.addMapping()

          UPnPMapping mapping = upnp.getMapping( type != PT_UDP , port );

          if ( mapping == null ) {

            new_mapping = mapping = upnp.addMapping( "NAT Tester", type != PT_UDP, port, true );

              // give UPnP a chance to work

            try{
              Thread.sleep( 500 );
View Full Code Here

Examples of com.android.dx.ssa.BasicRegisterMapper.addMapping()

        int oldRegCount = ssaMeth.getRegCount();

        BasicRegisterMapper mapper = new BasicRegisterMapper(oldRegCount);

        for (int i = 0; i < oldRegCount; i++) {
            mapper.addMapping(i, i*2, 2);
        }

        return mapper;
    }   
}
View Full Code Here

Examples of com.atilika.kuromoji.dict.TokenInfoDictionary.addMapping()

        for (Entry<Integer, String> entry : tokenInfoBuilder.entrySet()) {
            int tokenInfoId = entry.getKey();
            String surfaceForm = entry.getValue();
            int doubleArrayId = trie.lookup(surfaceForm);
            assert doubleArrayId > 0;
            tokenInfoDictionary.addMapping(doubleArrayId, tokenInfoId);
        }
        tokenInfoDictionary.write(outputDirname);

        System.out.println("done");
        System.out.println("done");
View Full Code Here

Examples of com.codingcrayons.aspectfaces.configuration.Configuration.addMapping()

      @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);
View Full Code Here

Examples of com.codingcrayons.aspectfaces.configuration.StaticConfiguration.addMapping()

    // set config (ignores fields)
    String CONFIG = "detail.config.xml";
    File file = new File(getResource("configuration/" + CONFIG));
    Configuration configuration = new StaticConfiguration(file.getName());
    configuration.addMapping(new Mapping("String", "path"));
    context.setConfiguration(configuration);

    List<MetaProperty> metaProperties = inspector.inspect(context);
    UIFragmentComposer composer = new UIFragmentComposer();
    composer.addAllFields(metaProperties);
View Full Code Here

Examples of com.ctc.wstx.util.BijectiveNsMap.addMapping()

    extends TestCase
{
    public void testMaskingForFindPrefix() throws Exception
    {
        BijectiveNsMap nsMap = BijectiveNsMap.createEmpty();
        nsMap.addMapping("ns", "abc");
        assertEquals("ns", nsMap.findPrefixByUri("abc"));
        // and then let's mask it
        nsMap = nsMap.createChild();
        nsMap.addMapping("ns", "xyz");
        String uri = nsMap.findPrefixByUri("abc");
View Full Code Here

Examples of com.ctc.wstx.util.BijectiveNsMap.addMapping()

        BijectiveNsMap nsMap = BijectiveNsMap.createEmpty();
        nsMap.addMapping("ns", "abc");
        assertEquals("ns", nsMap.findPrefixByUri("abc"));
        // and then let's mask it
        nsMap = nsMap.createChild();
        nsMap.addMapping("ns", "xyz");
        String uri = nsMap.findPrefixByUri("abc");
        if (uri != null) {
            fail("Expected null for masked prefix, got '"+uri+"'");
        }
    }
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.