code: public String attributes()
      {
          if (attributes==null && attributeMap==null)
              return noAttributes;
  
          StringBuffer buf = new StringBuffer(128);
          synchronized(buf)
          {
              if (attributeMap!=null)
              {
                  Enumeration e = attributeMap.keys();
                  while (e.hasMoreElements())
                  {
                      buf.append(' ');
                      String a = (String)e.nextElement();
                      buf.append(a);
                      buf.append('=');
                      buf.append(attributeMap.get(a).toString());
                  }
              }
              
              if(attributes!=null && attributes.length()>0)
              {
                  if (!attributes.startsWith(" "))
                      buf.append(' ');
                  buf.append(attributes);
              }
          }
  
          return buf.toString();
      }
docs: /* -----------------------------------------------------------------