Returns a List of the nodes children. @return the nodes children
()
| 428 | * @return the nodes children |
| 429 | */ |
| 430 | public List children() { |
| 431 | if (value == null) { |
| 432 | return new NodeList(); |
| 433 | } |
| 434 | if (value instanceof List) { |
| 435 | return (List) value; |
| 436 | } |
| 437 | // we're probably just a String |
| 438 | List result = new NodeList(); |
| 439 | result.add(value); |
| 440 | return result; |
| 441 | } |
| 442 | |
| 443 | /** |
| 444 | * Returns a <code>Map</code> of the attributes of the node or an empty <code>Map</code> |
no test coverage detected