test_class.declarator: JIM_FS
test_class.modifier: private static
test_class.original_string: private static FileSystem JIM_FS;
test_class.type: FileSystem
test_class.var_name: JIM_FS
test_class.declarator: sampleIndex = Index.builder()
              .name("my_workspace")
              .item(new Index.Key(SA_MULTI, "SAProcessing-1"), new Index.Value("SAProcessing-1", false, "hello world"))
              .item(new Index.Key(MOD_DOC_TRAMO, "TramoDoc-1"), new Index.Value("TramoDoc-1", false, null))
              .item(new Index.Key(SA_DOC_X13, "X13Doc-1"), new Index.Value("X13Doc-1", false, null))
              .item(new Index.Key(UTIL_VAR, "Vars-1"), new Index.Value("Vars-1", false, null))
              .item(new Index.Key(SA_SPEC_TRAMOSEATS, "TramoSeatsSpec-1"), new Index.Value("TramoSeatsSpec-1", false, null))
              .item(new Index.Key(SA_SPEC_X13, "X13Spec-1"), new Index.Value("X13Spec-1", false, null))
              .item(new Index.Key(MOD_SPEC_REGARIMA, "RegArimaSpec-1"), new Index.Value("RegArimaSpec-1", false, null))
              .item(new Index.Key(MOD_SPEC_TRAMO, "TramoSpec-1"), new Index.Value("TramoSpec-1", false, null))
              .item(new Index.Key(SA_DOC_TRAMOSEATS, "TramoSeatsDoc-1"), new Index.Value("TramoSeatsDoc-1", false, null))
              .item(new Index.Key(MOD_DOC_REGARIMA, "RegArimaDoc-1"), new Index.Value("RegArimaDoc-1", false, null))
              .item(new Index.Key(UTIL_CAL, "Calendars"), new Index.Value("Calendars", false, null))
              .build()
test_class.modifier: private final
test_class.original_string: private final Index sampleIndex = Index.builder()
              .name("my_workspace")
              .item(new Index.Key(SA_MULTI, "SAProcessing-1"), new Index.Value("SAProcessing-1", false, "hello world"))
              .item(new Index.Key(MOD_DOC_TRAMO, "TramoDoc-1"), new Index.Value("TramoDoc-1", false, null))
              .item(new Index.Key(SA_DOC_X13, "X13Doc-1"), new Index.Value("X13Doc-1", false, null))
              .item(new Index.Key(UTIL_VAR, "Vars-1"), new Index.Value("Vars-1", false, null))
              .item(new Index.Key(SA_SPEC_TRAMOSEATS, "TramoSeatsSpec-1"), new Index.Value("TramoSeatsSpec-1", false, null))
              .item(new Index.Key(SA_SPEC_X13, "X13Spec-1"), new Index.Value("X13Spec-1", false, null))
              .item(new Index.Key(MOD_SPEC_REGARIMA, "RegArimaSpec-1"), new Index.Value("RegArimaSpec-1", false, null))
              .item(new Index.Key(MOD_SPEC_TRAMO, "TramoSpec-1"), new Index.Value("TramoSpec-1", false, null))
              .item(new Index.Key(SA_DOC_TRAMOSEATS, "TramoSeatsDoc-1"), new Index.Value("TramoSeatsDoc-1", false, null))
              .item(new Index.Key(MOD_DOC_REGARIMA, "RegArimaDoc-1"), new Index.Value("RegArimaDoc-1", false, null))
              .item(new Index.Key(UTIL_CAL, "Calendars"), new Index.Value("Calendars", false, null))
              .build();
test_class.type: Index
test_class.var_name: sampleIndex
test_class.file: demetra-workspace/src/test/java/internal/workspace/file/GenericIndexerTest.java
test_class.identifier: GenericIndexerTest
test_case.body: @Test
      public void testUniqueItems() throws IOException {
          Path sampleFile = newGenericSample();
          try (Indexer indexer = new GenericIndexer(sampleFile, FileWorkspaceImpl.getRootFolder(sampleFile))) {
              assertThatThrownBy(() -> indexer.checkId(new Index.Key(UTIL_CAL, "Calendars2"))).isInstanceOf(IOException.class);
          }
      }
test_case.class_method_signature: GenericIndexerTest.testUniqueItems()
test_case.full_signature: @Test public void testUniqueItems()
test_case.identifier: testUniqueItems
test_case.invocations: newGenericSample getRootFolder isInstanceOf assertThatThrownBy checkId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUniqueItems()
focal_class.declarator: file
focal_class.modifier: private final
focal_class.original_string: private final Path file;
focal_class.type: Path
focal_class.var_name: file
focal_class.declarator: rootFolder
focal_class.modifier: private final
focal_class.original_string: private final Path rootFolder;
focal_class.type: Path
focal_class.var_name: rootFolder
focal_class.declarator: PARSER
focal_class.modifier: private static final
focal_class.original_string: private static final Xml.Parser<XmlGenericWorkspace> PARSER;
focal_class.type: Xml.Parser<XmlGenericWorkspace>
focal_class.var_name: PARSER
focal_class.declarator: FORMATTER
focal_class.modifier: private static final
focal_class.original_string: private static final Xml.Formatter<XmlGenericWorkspace> FORMATTER;
focal_class.type: Xml.Formatter<XmlGenericWorkspace>
focal_class.var_name: FORMATTER
focal_class.declarator: SINGLE_CAL_GENERIC_KEY = new Index.Key(WorkspaceFamily.UTIL_CAL, "Calendars")
focal_class.modifier: private static final
focal_class.original_string: private static final Index.Key SINGLE_CAL_GENERIC_KEY = new Index.Key(WorkspaceFamily.UTIL_CAL, "Calendars");
focal_class.type: Index.Key
focal_class.var_name: SINGLE_CAL_GENERIC_KEY
focal_class.declarator: SINGLE_CAL_GENERIC_VALUE = new Index.Value("Calendars", false, null)
focal_class.modifier: private static final
focal_class.original_string: private static final Index.Value SINGLE_CAL_GENERIC_VALUE = new Index.Value("Calendars", false, null);
focal_class.type: Index.Value
focal_class.var_name: SINGLE_CAL_GENERIC_VALUE
focal_class.file: demetra-workspace/src/main/java/internal/workspace/file/GenericIndexer.java
focal_class.identifier: GenericIndexer
focal_class.interfaces: implements Indexer
focal_class.class_method_signature: GenericIndexer.isValid(Path file)
focal_class.full_signature: static boolean isValid(Path file)
focal_class.identifier: isValid
focal_class.modifiers: static
focal_class.parameters: (Path file)
focal_class.return: boolean
focal_class.signature: boolean isValid(Path file)
focal_class.class_method_signature: GenericIndexer.GenericIndexer(Path file, Path rootFolder)
focal_class.full_signature:   GenericIndexer(Path file, Path rootFolder)
focal_class.identifier: GenericIndexer
focal_class.parameters: (Path file, Path rootFolder)
focal_class.signature:  GenericIndexer(Path file, Path rootFolder)
focal_class.class_method_signature: GenericIndexer.checkId(Index.Key key)
focal_class.full_signature: @Override public void checkId(Index.Key key)
focal_class.identifier: checkId
focal_class.modifiers: @Override public
focal_class.parameters: (Index.Key key)
focal_class.return: void
focal_class.signature: void checkId(Index.Key key)
focal_class.class_method_signature: GenericIndexer.loadIndex()
focal_class.full_signature: @Override public Index loadIndex()
focal_class.identifier: loadIndex
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Index
focal_class.signature: Index loadIndex()
focal_class.class_method_signature: GenericIndexer.storeIndex(Index index)
focal_class.full_signature: @Override public void storeIndex(Index index)
focal_class.identifier: storeIndex
focal_class.modifiers: @Override public
focal_class.parameters: (Index index)
focal_class.return: void
focal_class.signature: void storeIndex(Index index)
focal_class.class_method_signature: GenericIndexer.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: GenericIndexer.xmlToIndex(XmlGenericWorkspace xml, Path rootFolder)
focal_class.full_signature: private static Index xmlToIndex(XmlGenericWorkspace xml, Path rootFolder)
focal_class.identifier: xmlToIndex
focal_class.modifiers: private static
focal_class.parameters: (XmlGenericWorkspace xml, Path rootFolder)
focal_class.return: Index
focal_class.signature: Index xmlToIndex(XmlGenericWorkspace xml, Path rootFolder)
focal_class.class_method_signature: GenericIndexer.getIndexKey(XmlGenericWorkspaceItem xml)
focal_class.full_signature: private static Index.Key getIndexKey(XmlGenericWorkspaceItem xml)
focal_class.identifier: getIndexKey
focal_class.modifiers: private static
focal_class.parameters: (XmlGenericWorkspaceItem xml)
focal_class.return: Index.Key
focal_class.signature: Index.Key getIndexKey(XmlGenericWorkspaceItem xml)
focal_class.class_method_signature: GenericIndexer.getIndexValue(XmlGenericWorkspaceItem xml)
focal_class.full_signature: private static Index.Value getIndexValue(XmlGenericWorkspaceItem xml)
focal_class.identifier: getIndexValue
focal_class.modifiers: private static
focal_class.parameters: (XmlGenericWorkspaceItem xml)
focal_class.return: Index.Value
focal_class.signature: Index.Value getIndexValue(XmlGenericWorkspaceItem xml)
focal_class.class_method_signature: GenericIndexer.indexToXml(Index index, Path rootFolder)
focal_class.full_signature: private static XmlGenericWorkspace indexToXml(Index index, Path rootFolder)
focal_class.identifier: indexToXml
focal_class.modifiers: private static
focal_class.parameters: (Index index, Path rootFolder)
focal_class.return: XmlGenericWorkspace
focal_class.signature: XmlGenericWorkspace indexToXml(Index index, Path rootFolder)
focal_class.class_method_signature: GenericIndexer.indexEntriesToXml(Map<Index.Key, Index.Value> entries)
focal_class.full_signature: private static XmlGenericWorkspaceItem[] indexEntriesToXml(Map<Index.Key, Index.Value> entries)
focal_class.identifier: indexEntriesToXml
focal_class.modifiers: private static
focal_class.parameters: (Map<Index.Key, Index.Value> entries)
focal_class.return: XmlGenericWorkspaceItem[]
focal_class.signature: XmlGenericWorkspaceItem[] indexEntriesToXml(Map<Index.Key, Index.Value> entries)
focal_class.class_method_signature: GenericIndexer.unmarshalIndex(Path file)
focal_class.full_signature: private static XmlGenericWorkspace unmarshalIndex(Path file)
focal_class.identifier: unmarshalIndex
focal_class.modifiers: private static
focal_class.parameters: (Path file)
focal_class.return: XmlGenericWorkspace
focal_class.signature: XmlGenericWorkspace unmarshalIndex(Path file)
focal_class.class_method_signature: GenericIndexer.marshalIndex(Path file, XmlGenericWorkspace jaxbElement)
focal_class.full_signature: private static void marshalIndex(Path file, XmlGenericWorkspace jaxbElement)
focal_class.identifier: marshalIndex
focal_class.modifiers: private static
focal_class.parameters: (Path file, XmlGenericWorkspace jaxbElement)
focal_class.return: void
focal_class.signature: void marshalIndex(Path file, XmlGenericWorkspace jaxbElement)
focal_class.class_method_signature: GenericIndexer.pushCalendar(Path rootFolder, Index.Builder index)
focal_class.full_signature: private static void pushCalendar(Path rootFolder, Index.Builder index)
focal_class.identifier: pushCalendar
focal_class.modifiers: private static
focal_class.parameters: (Path rootFolder, Index.Builder index)
focal_class.return: void
focal_class.signature: void pushCalendar(Path rootFolder, Index.Builder index)
focal_class.class_method_signature: GenericIndexer.pullCalendar(Path rootFolder, Index index)
focal_class.full_signature: private static Index pullCalendar(Path rootFolder, Index index)
focal_class.identifier: pullCalendar
focal_class.modifiers: private static
focal_class.parameters: (Path rootFolder, Index index)
focal_class.return: Index
focal_class.signature: Index pullCalendar(Path rootFolder, Index index)
focal_method.body: @Override
      public void checkId(Index.Key key) throws IOException {
          if (WorkspaceFamily.UTIL_CAL.equals(key.getFamily())) {
              if (!key.getId().equals("Calendars")) {
                  throw new IOException("Only one calendar file is allowed");
              }
          }
      }
focal_method.class_method_signature: GenericIndexer.checkId(Index.Key key)
focal_method.full_signature: @Override public void checkId(Index.Key key)
focal_method.identifier: checkId
focal_method.invocations: equals getFamily equals getId
focal_method.modifiers: @Override public
focal_method.parameters: (Index.Key key)
focal_method.return: void
focal_method.signature: void checkId(Index.Key key)