{
    boolean result = gMonth.isValid() && "gMonth".equals(gMonth.getXMLSchemaType().getLocalPart());
    if (!result && diagnostics != null)
    {
      reportXMLGregorianCalendarViolation(XMLTypePackage.Literals.GMONTH, gMonth, diagnostics, context);
    }
    return result;
  }