test_class.declarator: KNOWN_FIELDS = "thingId"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_FIELDS = "thingId";
test_class.type: String
test_class.var_name: KNOWN_FIELDS
test_class.declarator: KNOWN_PREFIX = "prefix"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_PREFIX = "prefix";
test_class.type: String
test_class.var_name: KNOWN_PREFIX
test_class.declarator: JSON_ALL_FIELDS = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.TYPE, CreateSubscription.TYPE)
              .set(CreateSubscription.JsonFields.FILTER, TestConstants.KNOWN_FILTER_STR)
              .set(CreateSubscription.JsonFields.OPTIONS, String.format("%s, %s",TestConstants.KNOWN_OPT_1, TestConstants.KNOWN_OPT_2))
              .set(CreateSubscription.JsonFields.FIELDS, KNOWN_FIELDS)
              .set(CreateSubscription.JsonFields.NAMESPACES, JsonFactory.newArrayBuilder()
                      .add(TestConstants.KNOWN_NAMESPACE)
                      .build())
              .set(CreateSubscription.JsonFields.PREFIX, KNOWN_PREFIX)
              .build()
              .toString()
test_class.modifier: private static final
test_class.original_string: private static final String JSON_ALL_FIELDS = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.TYPE, CreateSubscription.TYPE)
              .set(CreateSubscription.JsonFields.FILTER, TestConstants.KNOWN_FILTER_STR)
              .set(CreateSubscription.JsonFields.OPTIONS, String.format("%s, %s",TestConstants.KNOWN_OPT_1, TestConstants.KNOWN_OPT_2))
              .set(CreateSubscription.JsonFields.FIELDS, KNOWN_FIELDS)
              .set(CreateSubscription.JsonFields.NAMESPACES, JsonFactory.newArrayBuilder()
                      .add(TestConstants.KNOWN_NAMESPACE)
                      .build())
              .set(CreateSubscription.JsonFields.PREFIX, KNOWN_PREFIX)
              .build()
              .toString();
test_class.type: String
test_class.var_name: JSON_ALL_FIELDS
test_class.declarator: JSON_MINIMAL = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.TYPE, CreateSubscription.TYPE)
              .build().toString()
test_class.modifier: private static final
test_class.original_string: private static final String JSON_MINIMAL = JsonFactory.newObjectBuilder()
              .set(ThingSearchCommand.JsonFields.TYPE, CreateSubscription.TYPE)
              .build().toString();
test_class.type: String
test_class.var_name: JSON_MINIMAL
test_class.file: signals/commands/thingsearch/src/test/java/org/eclipse/ditto/signals/commands/thingsearch/subscription/CreateSubscriptionTest.java
test_class.identifier: CreateSubscriptionTest
test_case.body: @Test
      public void toJsonWithOnlyRequiredFieldsSet() {
          final CreateSubscription command = CreateSubscription.of(DittoHeaders.empty());
          final String json = command.toJsonString();
          assertThat(json).isEqualTo(JSON_MINIMAL);
      }
test_case.class_method_signature: CreateSubscriptionTest.toJsonWithOnlyRequiredFieldsSet()
test_case.full_signature: @Test public void toJsonWithOnlyRequiredFieldsSet()
test_case.identifier: toJsonWithOnlyRequiredFieldsSet
test_case.invocations: of empty toJsonString isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonWithOnlyRequiredFieldsSet()
focal_class.declarator: NAME = "subscribe"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "subscribe";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: TYPE = TYPE_PREFIX + NAME
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = TYPE_PREFIX + NAME;
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: filter
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final String filter;
focal_class.type: String
focal_class.var_name: filter
focal_class.declarator: options
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final String options;
focal_class.type: String
focal_class.var_name: options
focal_class.declarator: fields
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final JsonFieldSelector fields;
focal_class.type: JsonFieldSelector
focal_class.var_name: fields
focal_class.declarator: namespaces
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final Set<String> namespaces;
focal_class.type: Set<String>
focal_class.var_name: namespaces
focal_class.declarator: prefix
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final String prefix;
focal_class.type: String
focal_class.var_name: prefix
focal_class.file: signals/commands/thingsearch/src/main/java/org/eclipse/ditto/signals/commands/thingsearch/subscription/CreateSubscription.java
focal_class.identifier: CreateSubscription
focal_class.interfaces: implements ThingSearchQueryCommand<CreateSubscription>
focal_class.class_method_signature: CreateSubscription.CreateSubscription(@Nullable final String filter,
              @Nullable final String options,
              @Nullable final JsonFieldSelector fields,
              @Nullable final Collection<String> namespaces,
              @Nullable final String prefix,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: private  CreateSubscription(@Nullable final String filter,
              @Nullable final String options,
              @Nullable final JsonFieldSelector fields,
              @Nullable final Collection<String> namespaces,
              @Nullable final String prefix,
              final DittoHeaders dittoHeaders)
focal_class.identifier: CreateSubscription
focal_class.modifiers: private
focal_class.parameters: (@Nullable final String filter,
              @Nullable final String options,
              @Nullable final JsonFieldSelector fields,
              @Nullable final Collection<String> namespaces,
              @Nullable final String prefix,
              final DittoHeaders dittoHeaders)
focal_class.signature:  CreateSubscription(@Nullable final String filter,
              @Nullable final String options,
              @Nullable final JsonFieldSelector fields,
              @Nullable final Collection<String> namespaces,
              @Nullable final String prefix,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreateSubscription.of(@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CreateSubscription of(@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_class.return: CreateSubscription
focal_class.signature: CreateSubscription of(@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreateSubscription.of(final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CreateSubscription of(final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: CreateSubscription
focal_class.signature: CreateSubscription of(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreateSubscription.fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CreateSubscription fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.return: CreateSubscription
focal_class.signature: CreateSubscription fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreateSubscription.getFilter()
focal_class.full_signature: public Optional<String> getFilter()
focal_class.identifier: getFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getFilter()
focal_class.class_method_signature: CreateSubscription.getOptions()
focal_class.full_signature: public Optional<String> getOptions()
focal_class.identifier: getOptions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getOptions()
focal_class.class_method_signature: CreateSubscription.getPrefix()
focal_class.full_signature: public Optional<String> getPrefix()
focal_class.identifier: getPrefix
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getPrefix()
focal_class.class_method_signature: CreateSubscription.getSelectedFields()
focal_class.full_signature: @Override public Optional<JsonFieldSelector> getSelectedFields()
focal_class.identifier: getSelectedFields
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<JsonFieldSelector>
focal_class.signature: Optional<JsonFieldSelector> getSelectedFields()
focal_class.class_method_signature: CreateSubscription.getNamespaces()
focal_class.full_signature: @Override public Optional<Set<String>> getNamespaces()
focal_class.identifier: getNamespaces
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<Set<String>>
focal_class.signature: Optional<Set<String>> getNamespaces()
focal_class.class_method_signature: CreateSubscription.setNamespaces(@Nullable final Collection<String> namespaces)
focal_class.full_signature: @Override public CreateSubscription setNamespaces(@Nullable final Collection<String> namespaces)
focal_class.identifier: setNamespaces
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Collection<String> namespaces)
focal_class.return: CreateSubscription
focal_class.signature: CreateSubscription setNamespaces(@Nullable final Collection<String> namespaces)
focal_class.class_method_signature: CreateSubscription.setPrefix(@Nullable final String prefix)
focal_class.full_signature: public CreateSubscription setPrefix(@Nullable final String prefix)
focal_class.identifier: setPrefix
focal_class.modifiers: public
focal_class.parameters: (@Nullable final String prefix)
focal_class.return: CreateSubscription
focal_class.signature: CreateSubscription setPrefix(@Nullable final String prefix)
focal_class.class_method_signature: CreateSubscription.appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.full_signature: @Override protected void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.identifier: appendPayload
focal_class.modifiers: @Override protected
focal_class.parameters: (final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.return: void
focal_class.signature: void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.class_method_signature: CreateSubscription.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public CreateSubscription setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: CreateSubscription
focal_class.signature: CreateSubscription setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreateSubscription.equals(@Nullable final Object o)
focal_class.full_signature: @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object o)
focal_class.class_method_signature: CreateSubscription.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: CreateSubscription.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends AbstractCommand<CreateSubscription>
focal_method.body: public static CreateSubscription of(@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders) {
          return new CreateSubscription(filter, options, fields, namespaces, null, dittoHeaders);
      }
focal_method.class_method_signature: CreateSubscription.of(@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_method.full_signature: public static CreateSubscription of(@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_method.identifier: of
focal_method.modifiers: public static
focal_method.parameters: (@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)
focal_method.return: CreateSubscription
focal_method.signature: CreateSubscription of(@Nullable final String filter, @Nullable final String options,
              @Nullable final JsonFieldSelector fields, @Nullable final Set<String> namespaces,
              final DittoHeaders dittoHeaders)