code: public static void append(int altitudeMode, StringBuilder sb) {
          switch (altitudeMode) {
              case KML_CLAMPTOGROUND:
                  sb.append("<kml:altitudeMode>clampToGround</kml:altitudeMode>");
                  return;
              case KML_RELATIVETOGROUND:
                  sb.append("<kml:altitudeMode>relativeToGround</kml:altitudeMode>");
                  return;
              case KML_ABSOLUTE:
                  sb.append("<kml:altitudeMode>absolute</kml:altitudeMode>");
                  return;
              case GX_CLAMPTOSEAFLOOR:
                  sb.append("<gx:altitudeMode>clampToSeaFloor</gx:altitudeMode>");
                  return;
              case GX_RELATIVETOSEAFLOOR:
                  sb.append("<gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>");
                  return;
              case NONE:
                  return;
              default:
                  throw new IllegalArgumentException("Supported altitude modes are: \n"
                          + " For KML profils: CLAMPTOGROUND = 1; RELATIVETOGROUND = 2; ABSOLUTE = 4;\n"
                          + "For GX profils: CLAMPTOSEAFLOOR = 8; RELATIVETOSEAFLOOR = 16; \n"
                          + " No altitude: NONE = 0");
          }
      }
docs: Generate a string value corresponding to the altitude mode.
  
  
  @param altitudeMode
  @param sb