()
| 733 | /// |
| 734 | /// - `IllegalStateException`: if this is not a text element |
| 735 | public String getText() { |
| 736 | if (!textElement) { |
| 737 | throw new IllegalStateException("Only text elements can get text"); |
| 738 | } |
| 739 | return name; |
| 740 | } |
| 741 | |
| 742 | /// Sets the text of this element to the specified string (For text elements only) |
| 743 | /// |
no outgoing calls