Examples of meta()


Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.meta()

       
        try {
            // If we are included and the main context is multilang we should try to take the language choice from there
            TMLContext mainContext = context.getmaincontext();
            if (LanguageBehaviourTools.isMultiLanguageContext(mainContext)) {
                Locale mainLangLocale = WGLanguage.languageNameToLocale((String) mainContext.meta(WGContent.META_LANGUAGE));
                String label = LanguageBehaviourTools.fetchLabelForLanguage(manager, container, file, key, mainLangLocale);
                if (label != null) {
                    return label;
                }
            }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.datasource.bundle.MultipleObjectsBundle.meta()

      // Identify a label column
      final int lblcol;
      {
        int lblc = -1;
        for(int i = 0; i < first.metaLength(); i++) {
          if(TypeUtil.GUESSED_LABEL.isAssignableFromType(first.meta(i))) {
            lblc = i;
            break;
          }
        }
        lblcol = lblc; // make static
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.datasource.bundle.SingleObjectBundle.meta()

      if(owriter == null) {
        throw new UnableToComplyException("No handler for database object itself: " + obj.getClass().getSimpleName());
      }
      String lbl = null;
      // TODO: ugly compatibility hack...
      if(TypeUtil.DBID.isAssignableFromType(bundle.meta(i))) {
        lbl = "ID";
      }
      owriter.writeObject(out, lbl, obj);
    }
View Full Code Here

Examples of mrtjp.projectred.exploration.DecorativeStoneDefs.StoneVal.meta()

        /** Walls **/
        for (int i = 0; i < DecorativeStoneDefs.values().size(); i++)
        {
            StoneVal s = (StoneVal) DecorativeStoneDefs.values().apply(i);
            addWallRecipe(new ItemStack(ProjectRedExploration.blockDecorativeWalls(), 6, s.meta()), s.makeStack());
        }
    }

    private static void addWallRecipe(ItemStack o, ItemStack m)
    {
View Full Code Here

Examples of org.apache.accumulo.server.fs.FileRef.meta()

      for (Entry<Key,Value> cell : ms) {
        Key key = cell.getKey();

        if (key.getColumnFamily().equals(DataFileColumnFamily.NAME)) {
          FileRef ref = new FileRef(VolumeManagerImpl.get(), key);
          bw.addMutation(createDeleteMutation(tableId, ref.meta().toString()));
        }

        if (TabletsSection.ServerColumnFamily.DIRECTORY_COLUMN.hasColumns(key)) {
          bw.addMutation(createDeleteMutation(tableId, cell.getValue().toString()));
        }
View Full Code Here

Examples of org.apache.tapestry.annotations.ComponentClass.meta()

        MutableComponentModel model = newMutableComponentModel();
        ComponentClass annotation = newMock(ComponentClass.class);

        train_getAnnotation(ct, ComponentClass.class, annotation);

        expect(annotation.meta()).andReturn(new String[]
        { "foo=bar", "baz=biff" });

        model.setMeta("foo", "bar");
        model.setMeta("baz", "biff");
View Full Code Here

Examples of org.apache.tapestry.annotations.ComponentClass.meta()

        ComponentClass annotation = transformation.getAnnotation(ComponentClass.class);

        if (annotation == null)
            return;

        for (String meta : annotation.meta())
        {
            KeyValue kv = TapestryUtils.parseKeyValue(meta);

            model.setMeta(kv.getKey(), kv.getValue());
        }
View Full Code Here

Examples of org.elasticsearch.index.mapper.DocumentMapper.meta()

    @Test public void testSimpleParser() throws Exception {
        String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/simple/test-mapping.json");
        DocumentMapper docMapper = MapperTests.newParser().parse(mapping);

        assertThat((String) docMapper.meta().get("param1"), equalTo("value1"));

        byte[] json = copyToBytesFromClasspath("/org/elasticsearch/index/mapper/simple/test1.json");
        Document doc = docMapper.parse(json).rootDoc();
        assertThat(doc.get(docMapper.uidMapper().names().indexName()), equalTo(Uid.createUid("person", "1")));
        assertThat((double) doc.getBoost(), closeTo(3.7, 0.01));
View Full Code Here

Examples of org.elasticsearch.index.mapper.DocumentMapper.meta()

    @Test public void testAttributes() throws Exception {
        String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/simple/test-mapping.json");
        DocumentMapper docMapper = MapperTests.newParser().parse(mapping);

        assertThat((String) docMapper.meta().get("param1"), equalTo("value1"));

        String builtMapping = docMapper.mappingSource().string();
        DocumentMapper builtDocMapper = MapperTests.newParser().parse(builtMapping);
        assertThat((String) builtDocMapper.meta().get("param1"), equalTo("value1"));
    }
View Full Code Here

Examples of org.elasticsearch.index.mapper.DocumentMapper.meta()

        assertThat((String) docMapper.meta().get("param1"), equalTo("value1"));

        String builtMapping = docMapper.mappingSource().string();
        DocumentMapper builtDocMapper = MapperTests.newParser().parse(builtMapping);
        assertThat((String) builtDocMapper.meta().get("param1"), equalTo("value1"));
    }
}
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.