com.github.cukedoctor.spi.FeatureRenderer Maven / Gradle / Ivy
package com.github.cukedoctor.spi;
import com.github.cukedoctor.api.CukedoctorDocumentBuilder;
import com.github.cukedoctor.api.model.Feature;
import com.github.cukedoctor.renderer.BaseRenderer;
import java.util.List;
/** Created by pestano on 24/02/16. */
public interface FeatureRenderer extends BaseRenderer {
/**
* @param feature the feature to render
* @return the rendered {@link String}
* @deprecated Use renderFeature(Feature, CukedoctorDocumentBuilder) instead
*/
@Deprecated
String renderFeature(Feature feature);
default String renderFeature(Feature feature, CukedoctorDocumentBuilder documentBuilder) {
setDocumentBuilder(documentBuilder);
return renderFeature(feature);
}
/**
* @param features the features to render
* @return the rendered {@link String}
* @deprecated Use renderFeatures(List<Feature>, CukedoctorDocumentBuilder) instead
*/
@Deprecated
String renderFeatures(List features);
default String renderFeatures(List features, CukedoctorDocumentBuilder documentBuilder) {
setDocumentBuilder(documentBuilder);
return renderFeatures(features);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy