com.credibledoc.substitution.doc.module.substitution.launching.ContentReplacedSearchCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of credible-doc-generator Show documentation
Show all versions of credible-doc-generator Show documentation
This module generates documentation
for the https://github.com/credibledoc/credible-doc repository projects.
See description on the https://github.com/credibledoc/credible-doc page.
package com.credibledoc.substitution.doc.module.substitution.launching;
import com.credibledoc.combiner.log.buffered.LogBufferedReader;
import com.credibledoc.enricher.printable.Printable;
import com.credibledoc.enricher.searchcommand.SearchCommand;
import com.credibledoc.substitution.reporting.replacement.ReplacementService;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ContentReplacedSearchCommand implements SearchCommand {
@Override
public boolean isApplicable(Printable printable,
List multiLine, LogBufferedReader logBufferedReader) {
return multiLine.get(0).contains(ReplacementService.CONTENT_REPLACED);
}
}