test_class.file: sdmxprovider/src/test/java/ec/tss/tsproviders/sdmx/engine/GenericDocFactoryTest.java
test_class.identifier: GenericDocFactoryTest
test_case.body: @Test
      public void testGenericP1Y() throws Exception {
          SdmxSource source = new GenericDocFactory().create(load("generic-P1Y.xml"));
          assertEquals(3, source.items.size());
  
          SdmxSeries series;
          TsData data;
  
          series = (SdmxSeries) source.items.get(0);
          assertEquals(TimeFormat.P1Y, series.timeFormat);
          assertEquals("NADET2008_INDICATOR=B1G, NADET2008_BRANCH=A38_AA, NADET2008_SECTOR=S1, NADET2008_PRICE=L, FREQUENCY=A", series.id);
          data = series.data.get();
          assertEquals(new TsDomain(TsFrequency.Yearly, 2009, 0, 5), data.getDomain());
          assertArrayEquals(new double[]{2722.8, 2911.5, 2836.2, 2708.5, 2797.7}, data.internalStorage(), 0);
  
          series = (SdmxSeries) source.items.get(2);
          assertEquals(TimeFormat.P1Y, series.timeFormat);
          assertEquals("NADET2008_INDICATOR=B1G, NADET2008_BRANCH=A38_AA, NADET2008_SECTOR=S11, NADET2008_PRICE=V, FREQUENCY=A", series.id);
          data = series.data.get();
          assertEquals(new TsDomain(TsFrequency.Yearly, 2009, 0, 5), data.getDomain());
          assertArrayEquals(new double[]{705.6, 815.8, 882.2, 960, 1199.4}, data.internalStorage(), 0);
      }
test_case.class_method_signature: GenericDocFactoryTest.testGenericP1Y()
test_case.full_signature: @Test public void testGenericP1Y()
test_case.identifier: testGenericP1Y
test_case.invocations: create load assertEquals size get assertEquals assertEquals get assertEquals getDomain assertArrayEquals internalStorage get assertEquals assertEquals get assertEquals getDomain assertArrayEquals internalStorage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGenericP1Y()
focal_class.declarator: CONCEPT_ATTRIBUTE = "concept"
focal_class.modifier: private static final
focal_class.original_string: private static final String CONCEPT_ATTRIBUTE = "concept";
focal_class.type: String
focal_class.var_name: CONCEPT_ATTRIBUTE
focal_class.declarator: VALUE_ATTRIBUTE = "value"
focal_class.modifier: private static final
focal_class.original_string: private static final String VALUE_ATTRIBUTE = "value";
focal_class.type: String
focal_class.var_name: VALUE_ATTRIBUTE
focal_class.declarator: DEFAULT_DATA_FORMAT = DataFormat.ROOT
focal_class.modifier: private static final
focal_class.original_string: private static final DataFormat DEFAULT_DATA_FORMAT = DataFormat.ROOT;
focal_class.type: DataFormat
focal_class.var_name: DEFAULT_DATA_FORMAT
focal_class.file: sdmxprovider/src/main/java/ec/tss/tsproviders/sdmx/engine/GenericDocFactory.java
focal_class.identifier: GenericDocFactory
focal_class.class_method_signature: GenericDocFactory.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: GenericDocFactory.isValid(Document doc)
focal_class.full_signature: @Override public boolean isValid(Document doc)
focal_class.identifier: isValid
focal_class.modifiers: @Override public
focal_class.parameters: (Document doc)
focal_class.return: boolean
focal_class.signature: boolean isValid(Document doc)
focal_class.class_method_signature: GenericDocFactory.create(Document doc)
focal_class.full_signature: @Override public SdmxSource create(Document doc)
focal_class.identifier: create
focal_class.modifiers: @Override public
focal_class.parameters: (Document doc)
focal_class.return: SdmxSource
focal_class.signature: SdmxSource create(Document doc)
focal_class.class_method_signature: GenericDocFactory.hasKeyFamilyRef(Node dataSetNode)
focal_class.full_signature: private static boolean hasKeyFamilyRef(Node dataSetNode)
focal_class.identifier: hasKeyFamilyRef
focal_class.modifiers: private static
focal_class.parameters: (Node dataSetNode)
focal_class.return: boolean
focal_class.signature: boolean hasKeyFamilyRef(Node dataSetNode)
focal_class.class_method_signature: GenericDocFactory.getSdmxItems(Node dataSetNode, Calendar cal)
focal_class.full_signature: private static ImmutableList<SdmxItem> getSdmxItems(Node dataSetNode, Calendar cal)
focal_class.identifier: getSdmxItems
focal_class.modifiers: private static
focal_class.parameters: (Node dataSetNode, Calendar cal)
focal_class.return: ImmutableList<SdmxItem>
focal_class.signature: ImmutableList<SdmxItem> getSdmxItems(Node dataSetNode, Calendar cal)
focal_class.class_method_signature: GenericDocFactory.getSdmxGroup(Node groupNode, Calendar cal)
focal_class.full_signature: private static SdmxGroup getSdmxGroup(Node groupNode, Calendar cal)
focal_class.identifier: getSdmxGroup
focal_class.modifiers: private static
focal_class.parameters: (Node groupNode, Calendar cal)
focal_class.return: SdmxGroup
focal_class.signature: SdmxGroup getSdmxGroup(Node groupNode, Calendar cal)
focal_class.class_method_signature: GenericDocFactory.getGroupKeyNode(Node node)
focal_class.full_signature: private static Optional<Node> getGroupKeyNode(Node node)
focal_class.identifier: getGroupKeyNode
focal_class.modifiers: private static
focal_class.parameters: (Node node)
focal_class.return: Optional<Node>
focal_class.signature: Optional<Node> getGroupKeyNode(Node node)
focal_class.class_method_signature: GenericDocFactory.getAttributeNode(Node node)
focal_class.full_signature: private static Optional<Node> getAttributeNode(Node node)
focal_class.identifier: getAttributeNode
focal_class.modifiers: private static
focal_class.parameters: (Node node)
focal_class.return: Optional<Node>
focal_class.signature: Optional<Node> getAttributeNode(Node node)
focal_class.class_method_signature: GenericDocFactory.getSdmxSeries(Node seriesNode, Predicate<Concept> keyFilter, Calendar cal)
focal_class.full_signature: private static SdmxSeries getSdmxSeries(Node seriesNode, Predicate<Concept> keyFilter, Calendar cal)
focal_class.identifier: getSdmxSeries
focal_class.modifiers: private static
focal_class.parameters: (Node seriesNode, Predicate<Concept> keyFilter, Calendar cal)
focal_class.return: SdmxSeries
focal_class.signature: SdmxSeries getSdmxSeries(Node seriesNode, Predicate<Concept> keyFilter, Calendar cal)
focal_class.class_method_signature: GenericDocFactory.getSeriesKeyNode(Node node)
focal_class.full_signature: private static Optional<Node> getSeriesKeyNode(Node node)
focal_class.identifier: getSeriesKeyNode
focal_class.modifiers: private static
focal_class.parameters: (Node node)
focal_class.return: Optional<Node>
focal_class.signature: Optional<Node> getSeriesKeyNode(Node node)
focal_class.class_method_signature: GenericDocFactory.getData(Node seriesNode, TimeFormat timeFormat, Calendar cal)
focal_class.full_signature: private static OptionalTsData getData(Node seriesNode, TimeFormat timeFormat, Calendar cal)
focal_class.identifier: getData
focal_class.modifiers: private static
focal_class.parameters: (Node seriesNode, TimeFormat timeFormat, Calendar cal)
focal_class.return: OptionalTsData
focal_class.signature: OptionalTsData getData(Node seriesNode, TimeFormat timeFormat, Calendar cal)
focal_class.class_method_signature: GenericDocFactory.getPeriod(Node obs)
focal_class.full_signature: private static String getPeriod(Node obs)
focal_class.identifier: getPeriod
focal_class.modifiers: private static
focal_class.parameters: (Node obs)
focal_class.return: String
focal_class.signature: String getPeriod(Node obs)
focal_class.class_method_signature: GenericDocFactory.getValue(Node obs)
focal_class.full_signature: private static String getValue(Node obs)
focal_class.identifier: getValue
focal_class.modifiers: private static
focal_class.parameters: (Node obs)
focal_class.return: String
focal_class.signature: String getValue(Node obs)
focal_class.class_method_signature: GenericDocFactory.getTimeFormat(Node series)
focal_class.full_signature: private static TimeFormat getTimeFormat(Node series)
focal_class.identifier: getTimeFormat
focal_class.modifiers: private static
focal_class.parameters: (Node series)
focal_class.return: TimeFormat
focal_class.signature: TimeFormat getTimeFormat(Node series)
focal_class.class_method_signature: GenericDocFactory.lookupDataSetNode(Document doc)
focal_class.full_signature: private static Optional<Node> lookupDataSetNode(Document doc)
focal_class.identifier: lookupDataSetNode
focal_class.modifiers: private static
focal_class.parameters: (Document doc)
focal_class.return: Optional<Node>
focal_class.signature: Optional<Node> lookupDataSetNode(Document doc)
focal_class.class_method_signature: GenericDocFactory.lookupObservations(Node seriesNode)
focal_class.full_signature: private static Stream<Node> lookupObservations(Node seriesNode)
focal_class.identifier: lookupObservations
focal_class.modifiers: private static
focal_class.parameters: (Node seriesNode)
focal_class.return: Stream<Node>
focal_class.signature: Stream<Node> lookupObservations(Node seriesNode)
focal_class.class_method_signature: GenericDocFactory.lookupConcepts(Node node)
focal_class.full_signature: private static Stream<Concept> lookupConcepts(Node node)
focal_class.identifier: lookupConcepts
focal_class.modifiers: private static
focal_class.parameters: (Node node)
focal_class.return: Stream<Concept>
focal_class.signature: Stream<Concept> lookupConcepts(Node node)
focal_class.class_method_signature: GenericDocFactory.toConcept(Node node)
focal_class.full_signature: private static Concept toConcept(Node node)
focal_class.identifier: toConcept
focal_class.modifiers: private static
focal_class.parameters: (Node node)
focal_class.return: Concept
focal_class.signature: Concept toConcept(Node node)
focal_class.superclass: extends AbstractDocumentFactory
focal_method.body: @Override
      public SdmxSource create(Document doc) {
          Optional<Node> dataSetNode = lookupDataSetNode(doc);
          return new SdmxSource(SdmxSource.Type.GENERIC, getSdmxItems(dataSetNode.get(), new GregorianCalendar()));
      }
focal_method.class_method_signature: GenericDocFactory.create(Document doc)
focal_method.full_signature: @Override public SdmxSource create(Document doc)
focal_method.identifier: create
focal_method.invocations: lookupDataSetNode getSdmxItems get
focal_method.modifiers: @Override public
focal_method.parameters: (Document doc)
focal_method.return: SdmxSource
focal_method.signature: SdmxSource create(Document doc)