com.credibledoc.substitution.doc.module.substitution.launching.ContentReplacedSearchCommand Maven / Gradle / Ivy
package com.credibledoc.substitution.doc.module.substitution.launching;
import com.credibledoc.combiner.log.buffered.LogBufferedReader;
import com.credibledoc.enricher.deriving.Deriving;
import com.credibledoc.enricher.searchcommand.SearchCommand;
import com.credibledoc.substitution.reporting.markdown.MarkdownService;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ContentReplacedSearchCommand implements SearchCommand {
@Override
public boolean isApplicable(Deriving deriving,
List multiLine, LogBufferedReader logBufferedReader) {
return multiLine.get(0).contains(MarkdownService.CONTENT_REPLACED);
}
}