test_class.file: decorator/src/test/java/org/apache/cxf/dosgi/dsw/decorator/DecorationParserTest.java
test_class.identifier: DecorationParserTest
test_case.body: @Test
      public void testGetDecoratorForSD() throws JAXBException, IOException {
          URL resource = getClass().getResource("/test-resources/sd.xml");
          List<ServiceDecorationType> elements = new DecorationParser().getDecorations(resource);
          assertEquals(1, elements.size());
          ServiceDecorationType decoration = elements.get(0);
          assertEquals(1, decoration.getMatch().size());
          MatchType match = decoration.getMatch().get(0);
          assertEquals("org.acme.foo.*", match.getInterface());
          assertEquals(1, match.getMatchProperty().size());
          MatchPropertyType matchProp = match.getMatchProperty().get(0);
          assertEquals("test.prop", matchProp.getName());
          assertEquals("xyz", matchProp.getValue());
          assertEquals(1, match.getAddProperty().size());
          AddPropertyType addProp = match.getAddProperty().get(0);
          assertEquals("test.too", addProp.getName());
          assertEquals("ahaha", addProp.getValue());
          assertEquals("java.lang.String", addProp.getType());
      }
test_case.class_method_signature: DecorationParserTest.testGetDecoratorForSD()
test_case.full_signature: @Test public void testGetDecoratorForSD()
test_case.identifier: testGetDecoratorForSD
test_case.invocations: getResource getClass getDecorations assertEquals size get assertEquals size getMatch get getMatch assertEquals getInterface assertEquals size getMatchProperty get getMatchProperty assertEquals getName assertEquals getValue assertEquals size getAddProperty get getAddProperty assertEquals getName assertEquals getValue assertEquals getType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetDecoratorForSD()
focal_class.declarator: jaxbContext
focal_class.modifier: private
focal_class.original_string: private JAXBContext jaxbContext;
focal_class.type: JAXBContext
focal_class.var_name: jaxbContext
focal_class.declarator: schema
focal_class.modifier: private
focal_class.original_string: private Schema schema;
focal_class.type: Schema
focal_class.var_name: schema
focal_class.file: decorator/src/main/java/org/apache/cxf/dosgi/dsw/decorator/DecorationParser.java
focal_class.identifier: DecorationParser
focal_class.class_method_signature: DecorationParser.DecorationParser()
focal_class.full_signature:   DecorationParser()
focal_class.identifier: DecorationParser
focal_class.parameters: ()
focal_class.signature:  DecorationParser()
focal_class.class_method_signature: DecorationParser.getDecorations(URL resourceURL)
focal_class.full_signature:  List<ServiceDecorationType> getDecorations(URL resourceURL)
focal_class.identifier: getDecorations
focal_class.parameters: (URL resourceURL)
focal_class.return: List<ServiceDecorationType>
focal_class.signature: List<ServiceDecorationType> getDecorations(URL resourceURL)
focal_class.class_method_signature: DecorationParser.decorationType(URL resourceURL)
focal_class.full_signature: private boolean decorationType(URL resourceURL)
focal_class.identifier: decorationType
focal_class.modifiers: private
focal_class.parameters: (URL resourceURL)
focal_class.return: boolean
focal_class.signature: boolean decorationType(URL resourceURL)
focal_method.body: List<ServiceDecorationType> getDecorations(URL resourceURL) throws JAXBException, IOException {
          if (resourceURL == null || !decorationType(resourceURL)) {
              return new ArrayList<>();
          }
          Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
          unmarshaller.setSchema(schema);
          InputStream is = resourceURL.openStream();
          Source source = new StreamSource(is);
          JAXBElement<ServiceDecorationsType> jaxb = unmarshaller.unmarshal(source, ServiceDecorationsType.class);
          ServiceDecorationsType decorations = jaxb.getValue();
          return decorations.getServiceDecoration();
      }
focal_method.class_method_signature: DecorationParser.getDecorations(URL resourceURL)
focal_method.full_signature:  List<ServiceDecorationType> getDecorations(URL resourceURL)
focal_method.identifier: getDecorations
focal_method.invocations: decorationType createUnmarshaller setSchema openStream unmarshal getValue getServiceDecoration
focal_method.parameters: (URL resourceURL)
focal_method.return: List<ServiceDecorationType>
focal_method.signature: List<ServiceDecorationType> getDecorations(URL resourceURL)