普通文本 content block。
| 4 | * 普通文本 content block。 |
| 5 | */ |
| 6 | public class TextBlock extends ContentBlock { |
| 7 | |
| 8 | private String text; |
| 9 | |
| 10 | public TextBlock() { |
| 11 | super("text"); |
| 12 | } |
| 13 | |
| 14 | public TextBlock(String text) { |
| 15 | super("text"); |
| 16 | this.text = text; |
| 17 | } |
| 18 | |
| 19 | public String getText() { |
| 20 | return text; |
| 21 | } |
| 22 | |
| 23 | public void setText(String text) { |
| 24 | this.text = text; |
| 25 | } |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected