Examples of language()


Examples of net.yacy.kelondro.data.meta.URIMetadataRow.language()

          metadata.put(METADATA.LOADDATE, ISO8601Formatter.FORMATTER.format(urlEntry.loaddate()));
          metadata.put(METADATA.MODDATE, ISO8601Formatter.FORMATTER.format(urlEntry.moddate()));
          metadata.put(METADATA.SNIPPET, String.valueOf(urlEntry.snippet()));
          metadata.put(METADATA.WORDCOUNT, String.valueOf(urlEntry.wordCount()));
          metadata.put(METADATA.MIMETYPE, String.valueOf(urlEntry.doctype()));
          metadata.put(METADATA.LANGUAGE, UTF8.String(urlEntry.language()));

          final URIMetadataRow.Components meta = urlEntry.metadata();
          if (meta != null) {
            metadata.put(METADATA.TITLE, meta.dc_title());
            metadata.put(METADATA.CREATOR, meta.dc_creator());
View Full Code Here

Examples of net.yacy.kelondro.data.meta.URIMetadataRow.language()

          metadata.put(METADATA.LOADDATE, ISO8601Formatter.FORMATTER.format(urlEntry.loaddate()));
          metadata.put(METADATA.MODDATE, ISO8601Formatter.FORMATTER.format(urlEntry.moddate()));
          metadata.put(METADATA.SNIPPET, String.valueOf(urlEntry.snippet()));
          metadata.put(METADATA.WORDCOUNT, String.valueOf(urlEntry.wordCount()));
          metadata.put(METADATA.MIMETYPE, String.valueOf(urlEntry.doctype()));
          metadata.put(METADATA.LANGUAGE, UTF8.String(urlEntry.language()));

          final URIMetadataRow.Components meta = urlEntry.metadata();
          if (meta != null) {
            metadata.put(METADATA.TITLE, meta.dc_title());
            metadata.put(METADATA.CREATOR, meta.dc_creator());
View Full Code Here

Examples of org.jboss.annotation.javaee.Description.language()

     
   public void testDefaultLanguage() throws Exception
   {
      Description description = unmarshal(Description.class);
      assertEquals("Hello", description.value());
      assertEquals(Description.DEFAULT_LANGUAGE, description.language());
   }
  
   public void testNonDefaultLanguage() throws Exception
   {
      Description description = unmarshal(Description.class);
View Full Code Here

Examples of org.jboss.annotation.javaee.Description.language()

  
   public void testNonDefaultLanguage() throws Exception
   {
      Description description = unmarshal(Description.class);
      assertEquals("Bonjour", description.value());
      assertEquals("fr", description.language());
   }
}
View Full Code Here

Examples of org.jboss.annotation.javaee.DisplayName.language()

  
   public void testDefaultLanguage() throws Exception
   {
      DisplayName displayName = unmarshal(DisplayName.class);
      assertEquals("Goodbye", displayName.value());
      assertEquals(Description.DEFAULT_LANGUAGE, displayName.language());
   }
  
   public void testNonDefaultLanguage() throws Exception
   {
      DisplayName displayName = unmarshal(DisplayName.class);
View Full Code Here

Examples of org.jboss.annotation.javaee.DisplayName.language()

  
   public void testNonDefaultLanguage() throws Exception
   {
      DisplayName displayName = unmarshal(DisplayName.class);
      assertEquals("Au revoir", displayName.value());
      assertEquals("fr", displayName.language());
   }
}
View Full Code Here

Examples of org.jboss.annotation.javaee.Icon.language()

   public void testDefaultLanguage() throws Exception
   {
      Icon icon = unmarshal(Icon.class);
      assertEquals("small", icon.smallIcon());
      assertEquals("large", icon.largeIcon());
      assertEquals(Description.DEFAULT_LANGUAGE, icon.language());
   }
  
   public void testNonDefaultLanguage() throws Exception
   {
      //enableTrace("org.jboss.xb");
View Full Code Here

Examples of org.jboss.annotation.javaee.Icon.language()

   {
      //enableTrace("org.jboss.xb");
      Icon icon = unmarshal(Icon.class);
      assertEquals("petite", icon.smallIcon());
      assertEquals("grand", icon.largeIcon());
      assertEquals("fr", icon.language());
   }
}
View Full Code Here

Examples of org.sonar.api.batch.fs.InputFile.language()

  }

  private long getDevelopmentCost(DecoratorContext context) {
    InputFile file = fs.inputFile(fs.predicates().hasRelativePath(context.getResource().getKey()));
    if (file != null) {
      String language = file.language();
      return getMeasureValue(context, sqaleRatingSettings.getSizeMetric(language, metrics)) * sqaleRatingSettings.getDevCost(language);
    } else {
      Collection<Measure> childrenMeasures = context.getChildrenMeasures(CoreMetrics.DEVELOPMENT_COST);
      Double sum = sum(childrenMeasures);
      return sum.longValue();
View Full Code Here

Examples of org.sonar.api.batch.fs.internal.DeprecatedDefaultInputFile.language()

    inputFile = builder.complete(inputFile, InputFile.Type.MAIN);

    assertThat(inputFile.type()).isEqualTo(InputFile.Type.MAIN);
    assertThat(inputFile.file()).isEqualTo(srcFile.getAbsoluteFile());
    assertThat(inputFile.absolutePath()).isEqualTo(PathUtils.sanitize(srcFile.getAbsolutePath()));
    assertThat(inputFile.language()).isEqualTo("java");
    assertThat(inputFile.key()).isEqualTo("struts:src/main/java/foo/Bar.java");
    assertThat(inputFile.relativePath()).isEqualTo("src/main/java/foo/Bar.java");
    assertThat(inputFile.lines()).isEqualTo(1);
    assertThat(inputFile.sourceDirAbsolutePath()).isNull();
    assertThat(inputFile.pathRelativeToSourceDir()).isNull();
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.