All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.datacleaner.beans.DefaultAnalyzerResultHtmlRenderer.scala Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package org.datacleaner.beans
import org.datacleaner.result.html.HtmlRenderer
import org.datacleaner.api.AnalyzerResult
import org.datacleaner.result.html.SimpleHtmlFragment
import org.datacleaner.api.RendererPrecedence
import org.datacleaner.api.RendererBean
import org.datacleaner.result.renderer.HtmlRenderingFormat
import javax.inject.Inject
import scala.collection.JavaConversions._
import org.datacleaner.job.AnalyzerJob
import org.datacleaner.api.InputColumn
import org.datacleaner.descriptors.ConfiguredPropertyDescriptor
import org.datacleaner.descriptors.MetricParameters
import org.datacleaner.api.Provided
import org.datacleaner.api.Renderer
import org.datacleaner.result.html.HtmlFragment

/**
 * The default HTML renderer for any AnalyzerResult.
 */
@RendererBean(classOf[HtmlRenderingFormat])
class DefaultAnalyzerResultHtmlRenderer extends Renderer[AnalyzerResult, HtmlFragment] {

  override def getPrecedence(renderable: AnalyzerResult) = RendererPrecedence.LOWEST;

  override def render(result: AnalyzerResult): HtmlFragment = {
    val frag = new SimpleHtmlFragment();
    frag.addBodyElement(new MetricListBodyElement(result));
    return frag;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy