docs: private void checkPrimitiveType(int accessor, int typeCode) throws JMFUninitializedAccessException, JMFSchemaViolationException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              JmfTr.entry(this, tc, "checkPrimitiveType", new Object[] { Integer.valueOf(accessor), Integer.valueOf(typeCode) });
  
          JSField field = getFieldDef(accessor, true);
  
          if (field == null) {
              JMFUninitializedAccessException e = new JMFUninitializedAccessException("Value at accessor " + accessor + " should not be present");
              if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                  JmfTr.exit(this, tc, "checkPrimitiveType", e);
              throw e;
          }
  
          if (field instanceof JSPrimitive) {
              if (((JSPrimitive) field).getTypeCode() != typeCode) {
                  JMFSchemaViolationException e = new JMFSchemaViolationException("Value at accessor " + accessor + " is incorrect type");
                  if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                      JmfTr.exit(this, tc, "checkPrimitiveType", e);
                  throw e;
              }
              else {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                      JmfTr.exit(this, tc, "checkPrimitiveType");
                  return;
              }
          }
          else if (field instanceof JSEnum && (typeCode == JMFPrimitiveType.INT)) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                  JmfTr.exit(this, tc, "checkPrimitiveType");
              return;
          }
          else {
              JMFSchemaViolationException e = new JMFSchemaViolationException("Value at accessor " + accessor + " is incorrect");
              if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                  JmfTr.exit(this, tc, "checkPrimitiveType", e);
              throw e;
          }
      }