com.alphasystem.docbook.builder.impl.BlockBuilder 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;
import com.alphasystem.commons.util.AppUtil;
import com.alphasystem.docbook.builder.Builder;
import com.alphasystem.docx4j.builder.wml.WmlBuilderFactory;
import org.docbook.model.Title;
import org.docx4j.wml.R;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
public abstract class BlockBuilder extends AbstractBuilder {
protected BlockBuilder(S source, Builder> parent) {
this("getContent", source, parent);
}
protected BlockBuilder(String childContentMethodName, S source, Builder> parent) {
super(childContentMethodName, source, parent);
}
protected Title getTitle() {
final var o = AppUtil.invokeMethod(source, "getTitle");
if (Objects.nonNull(o) && AppUtil.isInstanceOf(Title.class, o)) {
return (Title) o;
}
return null;
}
protected List