com.hadii.stiff.text.StiffComponentDocText Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stiff-lib Show documentation
Show all versions of stiff-lib Show documentation
stiff-lib is a java library for generating stiff diagrams.
The newest version!
package com.hadii.stiff.text;
/**
* The component documentation in Striff Diagrams.
*/
public final class StiffComponentDocText implements Text {
private final String text;
private final int lineLength;
public StiffComponentDocText(String text, int lineLength) {
this.text = text;
this.lineLength = lineLength;
}
@Override
public String value() {
return new LineBreakedText(
new NormalizedSpaceText(
new PlantUMLFriendlyText(
new DocCommentCharacterStrippedText(
new HtmlTagsStrippedText(
new DefaultText(this.text.trim()))))), lineLength).value();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy