public void addAttribute(String key, String value) {
        Node currNode = (Node)elementStack.peek();
        if (currNode == null || !currNode.isCollection) {
            startNode('@' + key, String.class);
            tagIsEmpty = false;
            writeText(value, String.class);
            endNode();
        }
    }
public void addAttribute ( String key , String value ) { Node currNode = ( Node ) elementStack . peek ( ) ; if ( currNode == null || ! currNode . isCollection ) { startNode ( '@' + key , String . class ) ; tagIsEmpty = false ; writeText ( value , String . class ) ; endNode ( ) ; } }
@param key key
@param value value