Returns the value of the attribute specified by name or an empty string. If the result is an empty string then it will be either #ATTRIBUTE_NOT_DEFINED if the attribute wasn't specified or #ATTRIBUTE_VALUE_EMPTY if the attribute was specified, but it was empty. @param attributeName
(final String attributeName)
| 425 | * @return the value of the attribute or {@link #ATTRIBUTE_NOT_DEFINED} or {@link #ATTRIBUTE_VALUE_EMPTY} |
| 426 | */ |
| 427 | @Override |
| 428 | public String getAttribute(final String attributeName) { |
| 429 | final DomAttr attr = attributes_.get(attributeName); |
| 430 | if (attr != null) { |
| 431 | return attr.getNodeValue(); |
| 432 | } |
| 433 | return ATTRIBUTE_NOT_DEFINED; |
| 434 | } |
| 435 | |
| 436 | /** |
| 437 | * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br> |
no test coverage detected