test_class.declarator: NAMESPACE = "com.example.test"
test_class.modifier: private static final
test_class.original_string: private static final String NAMESPACE = "com.example.test";
test_class.type: String
test_class.var_name: NAMESPACE
test_class.declarator: ENTITY_IDS_TO_PURGE = Arrays.asList(
              DefaultEntityId.of("x:y"),
              DefaultEntityId.of("a:b"),
              DefaultEntityId.of("f:oo"))
test_class.modifier: private static final
test_class.original_string: private static final List<EntityId> ENTITY_IDS_TO_PURGE = Arrays.asList(
              DefaultEntityId.of("x:y"),
              DefaultEntityId.of("a:b"),
              DefaultEntityId.of("f:oo"));
test_class.type: List<EntityId>
test_class.var_name: ENTITY_IDS_TO_PURGE
test_class.declarator: purgeNamespaceReasonJson
test_class.modifier: private static
test_class.original_string: private static JsonObject purgeNamespaceReasonJson;
test_class.type: JsonObject
test_class.var_name: purgeNamespaceReasonJson
test_class.declarator: purgeEntitiesReasonJson
test_class.modifier: private static
test_class.original_string: private static JsonObject purgeEntitiesReasonJson;
test_class.type: JsonObject
test_class.var_name: purgeEntitiesReasonJson
test_class.file: signals/commands/common/src/test/java/org/eclipse/ditto/signals/commands/common/ShutdownReasonFactoryTest.java
test_class.identifier: ShutdownReasonFactoryTest
test_case.body: @Test
      public void fromJsonWithUnknownType() {
          final JsonObject shutdownReasonWithUnknownType = purgeEntitiesReasonJson.toBuilder()
                  .set(ShutdownReason.JsonFields.TYPE, "fooBar")
                  .build();
  
          assertThat(ShutdownReasonFactory.fromJson(shutdownReasonWithUnknownType)).isEqualTo(ShutdownNoReason.INSTANCE);
      }
test_case.class_method_signature: ShutdownReasonFactoryTest.fromJsonWithUnknownType()
test_case.full_signature: @Test public void fromJsonWithUnknownType()
test_case.identifier: fromJsonWithUnknownType
test_case.invocations: build set toBuilder isEqualTo assertThat fromJson
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fromJsonWithUnknownType()
focal_class.file: signals/commands/common/src/main/java/org/eclipse/ditto/signals/commands/common/ShutdownReasonFactory.java
focal_class.identifier: ShutdownReasonFactory
focal_class.class_method_signature: ShutdownReasonFactory.ShutdownReasonFactory()
focal_class.full_signature: private  ShutdownReasonFactory()
focal_class.identifier: ShutdownReasonFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ShutdownReasonFactory()
focal_class.class_method_signature: ShutdownReasonFactory.fromJson(final JsonObject jsonObject)
focal_class.full_signature: public static ShutdownReason fromJson(final JsonObject jsonObject)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: ShutdownReason
focal_class.signature: ShutdownReason fromJson(final JsonObject jsonObject)
focal_class.class_method_signature: ShutdownReasonFactory.getReasonType(final JsonObject shutdownReasonJson)
focal_class.full_signature: private static ShutdownReasonType getReasonType(final JsonObject shutdownReasonJson)
focal_class.identifier: getReasonType
focal_class.modifiers: private static
focal_class.parameters: (final JsonObject shutdownReasonJson)
focal_class.return: ShutdownReasonType
focal_class.signature: ShutdownReasonType getReasonType(final JsonObject shutdownReasonJson)
focal_class.class_method_signature: ShutdownReasonFactory.getPurgeNamespaceReason(final CharSequence namespace)
focal_class.full_signature: public static ShutdownReason getPurgeNamespaceReason(final CharSequence namespace)
focal_class.identifier: getPurgeNamespaceReason
focal_class.modifiers: public static
focal_class.parameters: (final CharSequence namespace)
focal_class.return: ShutdownReason
focal_class.signature: ShutdownReason getPurgeNamespaceReason(final CharSequence namespace)
focal_class.class_method_signature: ShutdownReasonFactory.getPurgeEntitiesReason(final List<EntityId> entityIds)
focal_class.full_signature: public static ShutdownReason getPurgeEntitiesReason(final List<EntityId> entityIds)
focal_class.identifier: getPurgeEntitiesReason
focal_class.modifiers: public static
focal_class.parameters: (final List<EntityId> entityIds)
focal_class.return: ShutdownReason
focal_class.signature: ShutdownReason getPurgeEntitiesReason(final List<EntityId> entityIds)
focal_method.body: public static ShutdownReason fromJson(final JsonObject jsonObject) {
          checkNotNull(jsonObject, "reason JSON object");
  
          final ShutdownReasonType type = getReasonType(jsonObject);
  
          if (ShutdownReasonType.Known.PURGE_NAMESPACE.equals(type)) {
              return PurgeNamespaceReason.fromJson(jsonObject);
          } else if (ShutdownReasonType.Known.PURGE_ENTITIES.equals(type)) {
              return PurgeEntitiesReason.fromJson(jsonObject);
          } else {
              return ShutdownNoReason.INSTANCE;
          }
      }
focal_method.class_method_signature: ShutdownReasonFactory.fromJson(final JsonObject jsonObject)
focal_method.full_signature: public static ShutdownReason fromJson(final JsonObject jsonObject)
focal_method.identifier: fromJson
focal_method.invocations: checkNotNull getReasonType equals fromJson equals fromJson
focal_method.modifiers: public static
focal_method.parameters: (final JsonObject jsonObject)
focal_method.return: ShutdownReason
focal_method.signature: ShutdownReason fromJson(final JsonObject jsonObject)