com.alphasystem.docbook.builder.impl.block.ExampleBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docbook-2-docx Show documentation
Show all versions of docbook-2-docx Show documentation
Alpha system commons library
The newest version!
package com.alphasystem.docbook.builder.impl.block;
import com.alphasystem.docbook.builder.Builder;
import com.alphasystem.docbook.builder.impl.JavaScriptBasedBuilder;
import com.alphasystem.docbook.model.FunctionInput;
import com.alphasystem.xml.UnmarshallerConstants;
import org.docbook.model.Example;
import org.docbook.model.Title;
import org.docx4j.wml.Tbl;
import java.util.List;
public class ExampleBuilder extends JavaScriptBasedBuilder {
public ExampleBuilder(Example source, Builder> parent) {
super(source, parent);
}
@Override
protected Title getTitle() {
return (Title) source.getTitleContent().stream().filter(UnmarshallerConstants::isTitleType)
.findFirst().orElse(null);
}
@Override
protected FunctionInput initFunctionInputs(List