test_class.declarator: id = DataSourceTest.newSample()
test_class.modifier: final
test_class.original_string: final DataSource id = DataSourceTest.newSample();
test_class.type: DataSource
test_class.var_name: id
test_class.declarator: k1 = "domain"
test_class.modifier: final
test_class.original_string: final String k1 = "domain", v1 = "NB01";
test_class.type: String
test_class.var_name: k1
test_class.declarator: content = ImmutableSortedMap.of(k1, v1)
test_class.modifier: final
test_class.original_string: final ImmutableSortedMap<String, String> content = ImmutableSortedMap.of(k1, v1);
test_class.type: ImmutableSortedMap<String, String>
test_class.var_name: content
test_class.declarator: emptyContent = ImmutableSortedMap.of()
test_class.modifier: final
test_class.original_string: final ImmutableSortedMap<String, String> emptyContent = ImmutableSortedMap.of();
test_class.type: ImmutableSortedMap<String, String>
test_class.var_name: emptyContent
test_class.file: jtss/src/test/java/ec/tss/tsproviders/DataSetTest.java
test_class.identifier: DataSetTest
test_case.body: @Test
      public void testXmlFormatter() {
          DataSet dataSet = newSample();
          Formatters.Formatter<DataSet> formatter = DataSet.xmlFormatter(false);
          Assert.assertNotNull(formatter.format(dataSet));
          //System.err.println(DataSet.xmlFormatter(false).format(dataSet));
  
          DataSet d1 = new DataSet(id, DataSet.Kind.COLLECTION, content);
          DataSet d2 = new DataSet(id, DataSet.Kind.COLLECTION, content);
          Assert.assertEquals(formatter.format(d1), formatter.format(d2));
      }
test_case.class_method_signature: DataSetTest.testXmlFormatter()
test_case.full_signature: @Test public void testXmlFormatter()
test_case.identifier: testXmlFormatter
test_case.invocations: newSample xmlFormatter assertNotNull format assertEquals format format
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testXmlFormatter()
focal_class.declarator: dataSource
focal_class.modifier: private final
focal_class.original_string: private final DataSource dataSource;
focal_class.type: DataSource
focal_class.var_name: dataSource
focal_class.declarator: kind
focal_class.modifier: private final
focal_class.original_string: private final Kind kind;
focal_class.type: Kind
focal_class.var_name: kind
focal_class.declarator: params
focal_class.modifier: private final
focal_class.original_string: private final ImmutableSortedMap<String, String> params;
focal_class.type: ImmutableSortedMap<String, String>
focal_class.var_name: params
focal_class.declarator: XML = ThreadLocal.withInitial(Xml::new)
focal_class.modifier: private static final
focal_class.original_string: private static final ThreadLocal<Xml> XML = ThreadLocal.withInitial(Xml::new);
focal_class.type: ThreadLocal<Xml>
focal_class.var_name: XML
focal_class.declarator: SCHEME = "demetra"
focal_class.modifier: private static final
focal_class.original_string: private static final String SCHEME = "demetra";
focal_class.type: String
focal_class.var_name: SCHEME
focal_class.declarator: HOST = "tsprovider"
focal_class.modifier: private static final
focal_class.original_string: private static final String HOST = "tsprovider";
focal_class.type: String
focal_class.var_name: HOST
focal_class.declarator: URI_PARSER = new FailSafeParser<DataSet>() {
          @Override
          protected DataSet doParse(CharSequence input) throws Exception {
              URI uri = new URI(input.toString());
              if (!SCHEME.equals(uri.getScheme()) || !HOST.equals(uri.getHost())) {
                  return null;
              }
              String[] path = UriBuilder.getPathArray(uri, 3);
              if (path == null) {
                  return null;
              }
              Map<String, String> query = UriBuilder.getQueryMap(uri);
              if (query == null) {
                  return null;
              }
              Map<String, String> fragment = UriBuilder.getFragmentMap(uri);
              if (fragment == null) {
                  return null;
              }
              DataSource dataSource = new DataSource(path[0], path[1], Util.toImmutable(query));
              return new DataSet(dataSource, Kind.valueOf(path[2]), Util.toImmutable(fragment));
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final Parsers.Parser<DataSet> URI_PARSER = new FailSafeParser<DataSet>() {
          @Override
          protected DataSet doParse(CharSequence input) throws Exception {
              URI uri = new URI(input.toString());
              if (!SCHEME.equals(uri.getScheme()) || !HOST.equals(uri.getHost())) {
                  return null;
              }
              String[] path = UriBuilder.getPathArray(uri, 3);
              if (path == null) {
                  return null;
              }
              Map<String, String> query = UriBuilder.getQueryMap(uri);
              if (query == null) {
                  return null;
              }
              Map<String, String> fragment = UriBuilder.getFragmentMap(uri);
              if (fragment == null) {
                  return null;
              }
              DataSource dataSource = new DataSource(path[0], path[1], Util.toImmutable(query));
              return new DataSet(dataSource, Kind.valueOf(path[2]), Util.toImmutable(fragment));
          }
      };
focal_class.type: Parsers.Parser<DataSet>
focal_class.var_name: URI_PARSER
focal_class.declarator: URI_FORMATTER = Formatters.wrap(DataSet::formatAsUri)
focal_class.modifier: private static final
focal_class.original_string: private static final Formatters.Formatter<DataSet> URI_FORMATTER = Formatters.wrap(DataSet::formatAsUri);
focal_class.type: Formatters.Formatter<DataSet>
focal_class.var_name: URI_FORMATTER
focal_class.file: jtss/src/main/java/ec/tss/tsproviders/DataSet.java
focal_class.identifier: DataSet
focal_class.interfaces: implements IConfig, Serializable
focal_class.class_method_signature: DataSet.DataSet(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull ImmutableSortedMap<String, String> params)
focal_class.full_signature: @VisibleForTesting  DataSet(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull ImmutableSortedMap<String, String> params)
focal_class.identifier: DataSet
focal_class.modifiers: @VisibleForTesting
focal_class.parameters: (@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull ImmutableSortedMap<String, String> params)
focal_class.signature:  DataSet(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull ImmutableSortedMap<String, String> params)
focal_class.class_method_signature: DataSet.getDataSource()
focal_class.full_signature: @NonNull public DataSource getDataSource()
focal_class.identifier: getDataSource
focal_class.modifiers: @NonNull public
focal_class.parameters: ()
focal_class.return: DataSource
focal_class.signature: DataSource getDataSource()
focal_class.class_method_signature: DataSet.getKind()
focal_class.full_signature: @NonNull public Kind getKind()
focal_class.identifier: getKind
focal_class.modifiers: @NonNull public
focal_class.parameters: ()
focal_class.return: Kind
focal_class.signature: Kind getKind()
focal_class.class_method_signature: DataSet.getParams()
focal_class.full_signature: @Override public SortedMap<String, String> getParams()
focal_class.identifier: getParams
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SortedMap<String, String>
focal_class.signature: SortedMap<String, String> getParams()
focal_class.class_method_signature: DataSet.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: DataSet.equals(DataSet that)
focal_class.full_signature: private boolean equals(DataSet that)
focal_class.identifier: equals
focal_class.modifiers: private
focal_class.parameters: (DataSet that)
focal_class.return: boolean
focal_class.signature: boolean equals(DataSet that)
focal_class.class_method_signature: DataSet.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: DataSet.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.class_method_signature: DataSet.toBuilder(@NonNull Kind kind)
focal_class.full_signature: @NonNull public Builder toBuilder(@NonNull Kind kind)
focal_class.identifier: toBuilder
focal_class.modifiers: @NonNull public
focal_class.parameters: (@NonNull Kind kind)
focal_class.return: Builder
focal_class.signature: Builder toBuilder(@NonNull Kind kind)
focal_class.class_method_signature: DataSet.toBean()
focal_class.full_signature: @VisibleForTesting DataSetBean toBean()
focal_class.identifier: toBean
focal_class.modifiers: @VisibleForTesting
focal_class.parameters: ()
focal_class.return: DataSetBean
focal_class.signature: DataSetBean toBean()
focal_class.class_method_signature: DataSet.of(@NonNull DataSource dataSource, @NonNull Kind kind)
focal_class.full_signature: @NonNull public static DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind)
focal_class.identifier: of
focal_class.modifiers: @NonNull public static
focal_class.parameters: (@NonNull DataSource dataSource, @NonNull Kind kind)
focal_class.return: DataSet
focal_class.signature: DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind)
focal_class.class_method_signature: DataSet.of(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull String key, @NonNull String value)
focal_class.full_signature: @NonNull public static DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull String key, @NonNull String value)
focal_class.identifier: of
focal_class.modifiers: @NonNull public static
focal_class.parameters: (@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull String key, @NonNull String value)
focal_class.return: DataSet
focal_class.signature: DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull String key, @NonNull String value)
focal_class.class_method_signature: DataSet.deepCopyOf(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull Map<String, String> params)
focal_class.full_signature: @NonNull public static DataSet deepCopyOf(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull Map<String, String> params)
focal_class.identifier: deepCopyOf
focal_class.modifiers: @NonNull public static
focal_class.parameters: (@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull Map<String, String> params)
focal_class.return: DataSet
focal_class.signature: DataSet deepCopyOf(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull Map<String, String> params)
focal_class.class_method_signature: DataSet.builder(@NonNull DataSource dataSource, @NonNull Kind kind)
focal_class.full_signature: @NonNull public static Builder builder(@NonNull DataSource dataSource, @NonNull Kind kind)
focal_class.identifier: builder
focal_class.modifiers: @NonNull public static
focal_class.parameters: (@NonNull DataSource dataSource, @NonNull Kind kind)
focal_class.return: Builder
focal_class.signature: Builder builder(@NonNull DataSource dataSource, @NonNull Kind kind)
focal_class.class_method_signature: DataSet.builder(@NonNull DataSet dataSet, @NonNull Kind kind)
focal_class.full_signature: @Deprecated @NonNull public static Builder builder(@NonNull DataSet dataSet, @NonNull Kind kind)
focal_class.identifier: builder
focal_class.modifiers: @Deprecated @NonNull public static
focal_class.parameters: (@NonNull DataSet dataSet, @NonNull Kind kind)
focal_class.return: Builder
focal_class.signature: Builder builder(@NonNull DataSet dataSet, @NonNull Kind kind)
focal_class.class_method_signature: DataSet.xmlFormatter(boolean formattedOutput)
focal_class.full_signature: public static Formatters.@NonNull Formatter<DataSet> xmlFormatter(boolean formattedOutput)
focal_class.identifier: xmlFormatter
focal_class.modifiers: public static
focal_class.parameters: (boolean formattedOutput)
focal_class.return: Formatters.@NonNull Formatter<DataSet>
focal_class.signature: Formatters.@NonNull Formatter<DataSet> xmlFormatter(boolean formattedOutput)
focal_class.class_method_signature: DataSet.xmlParser()
focal_class.full_signature: public static Parsers.@NonNull Parser<DataSet> xmlParser()
focal_class.identifier: xmlParser
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Parsers.@NonNull Parser<DataSet>
focal_class.signature: Parsers.@NonNull Parser<DataSet> xmlParser()
focal_class.class_method_signature: DataSet.uriFormatter()
focal_class.full_signature: public static Formatters.@NonNull Formatter<DataSet> uriFormatter()
focal_class.identifier: uriFormatter
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Formatters.@NonNull Formatter<DataSet>
focal_class.signature: Formatters.@NonNull Formatter<DataSet> uriFormatter()
focal_class.class_method_signature: DataSet.uriParser()
focal_class.full_signature: public static Parsers.@NonNull Parser<DataSet> uriParser()
focal_class.identifier: uriParser
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Parsers.@NonNull Parser<DataSet>
focal_class.signature: Parsers.@NonNull Parser<DataSet> uriParser()
focal_class.class_method_signature: DataSet.formatAsUri(DataSet value)
focal_class.full_signature: private static CharSequence formatAsUri(DataSet value)
focal_class.identifier: formatAsUri
focal_class.modifiers: private static
focal_class.parameters: (DataSet value)
focal_class.return: CharSequence
focal_class.signature: CharSequence formatAsUri(DataSet value)
focal_method.body: public static Formatters.@NonNull Formatter<DataSet> xmlFormatter(boolean formattedOutput) {
          return formattedOutput ? XML.get().formattedOutputFormatter : XML.get().defaultFormatter;
      }
focal_method.class_method_signature: DataSet.xmlFormatter(boolean formattedOutput)
focal_method.full_signature: public static Formatters.@NonNull Formatter<DataSet> xmlFormatter(boolean formattedOutput)
focal_method.identifier: xmlFormatter
focal_method.invocations: get get
focal_method.modifiers: public static
focal_method.parameters: (boolean formattedOutput)
focal_method.return: Formatters.@NonNull Formatter<DataSet>
focal_method.signature: Formatters.@NonNull Formatter<DataSet> xmlFormatter(boolean formattedOutput)