code: public void addCase(JMFType theCase) {
      if (theCase == null)
        throw new NullPointerException("Variant case cannot be null");
      JSType newCase = (JSType)theCase;
      if (cases == null)
        cases = new JSType[1];
      else {
        JSType[] oldCases = cases;
        cases = new JSType[oldCases.length + 1];
        System.arraycopy(oldCases, 0, cases, 0, oldCases.length);
      }
      newCase.parent = this;
      newCase.siblingPosition = cases.length - 1;
      cases[newCase.siblingPosition] = newCase;
    }
docs: Add a case to the variant.  Note that every variant must have at least one case.