code: public final void setAttribute(String currentElement, StringBuilder contentBuffer) {
          if (currentElement.equalsIgnoreCase(GPXTags.NAME)) {
              setName(contentBuffer);
          } else if (currentElement.equalsIgnoreCase(GPXTags.CMT)) {
              setCmt(contentBuffer);
          } else if (currentElement.equalsIgnoreCase(GPXTags.DESC)) {
              setDesc(contentBuffer);
          } else if (currentElement.equalsIgnoreCase(GPXTags.SRC)) {
              setSrc(contentBuffer);
          } else if (currentElement.equalsIgnoreCase(GPXTags.NUMBER)) {
              setNumber(contentBuffer);
          } else if (currentElement.equalsIgnoreCase(GPXTags.TYPE)) {
              setType(contentBuffer);
          } else if (currentElement.equalsIgnoreCase(GPXTags.EXTENSIONS)) {
              setExtensions();
          }
      }
docs: Set an attribute for a line. The String currentElement gives the
  information of which attribute have to be setted. The attribute to set is
  given by the StringBuilder contentBuffer.
  
  @param currentElement a string presenting the text of the current markup.
  @param contentBuffer it contains all informations about the current
  element.