()
| 123 | /// |
| 124 | /// - `IllegalStateException`: if this is a text element |
| 125 | public String getTagName() { |
| 126 | if (textElement) { |
| 127 | throw new IllegalStateException("Text elements do not have a tag name"); |
| 128 | } |
| 129 | return name; |
| 130 | } |
| 131 | |
| 132 | /// Sets the name or text (for text elements) of this tag |
| 133 | /// |
no outgoing calls