Returns true if this node has any children (non-root elements). @return true if the node has children
()
| 239 | * @return {@code true} if the node has children |
| 240 | */ |
| 241 | public boolean hasChildren() { |
| 242 | return children() > 0; |
| 243 | } |
| 244 | |
| 245 | /** |
| 246 | * Returns the number of child elements (excluding the root). |