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