test_class.file: lang-java/src/test/java/org/eclipse/steady/java/PomParserTest.java
test_class.identifier: PomParserTest
test_case.body: @Test
    public void testParsePom() {
      try {
        final PomParser pp = new PomParser();
        final SAXParserFactory spf = SAXParserFactory.newInstance();
        spf.setNamespaceAware(true);
        final SAXParser saxParser = spf.newSAXParser();
        final XMLReader xmlReader = saxParser.getXMLReader();
        xmlReader.setContentHandler(pp);
        xmlReader.parse(new InputSource(new FileReader(new File("pom.xml"))));
        assertEquals("com.sap.research.security.vulas", pp.getLibraryId().getMvnGroup());
        assertEquals("lang-java", pp.getLibraryId().getArtifact());
      } catch (Exception e) {
        e.printStackTrace();
        assertTrue(false);
      }
    }
test_case.class_method_signature: PomParserTest.testParsePom()
test_case.full_signature: @Test public void testParsePom()
test_case.identifier: testParsePom
test_case.invocations: newInstance setNamespaceAware newSAXParser getXMLReader setContentHandler parse assertEquals getMvnGroup getLibraryId assertEquals getArtifact getLibraryId printStackTrace assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParsePom()
focal_class.declarator: log = org.apache.logging.log4j.LogManager.getLogger()
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = org.apache.logging.log4j.LogManager.getLogger();
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: pg = new String[] {"project", "parent", "groupId"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] pg = new String[] {"project", "parent", "groupId"};
focal_class.type: String[]
focal_class.var_name: pg
focal_class.declarator: pa = new String[] {"project", "parent", "artifactId"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] pa = new String[] {"project", "parent", "artifactId"};
focal_class.type: String[]
focal_class.var_name: pa
focal_class.declarator: pv = new String[] {"project", "parent", "version"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] pv = new String[] {"project", "parent", "version"};
focal_class.type: String[]
focal_class.var_name: pv
focal_class.declarator: g = new String[] {"project", "groupId"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] g = new String[] {"project", "groupId"};
focal_class.type: String[]
focal_class.var_name: g
focal_class.declarator: a = new String[] {"project", "artifactId"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] a = new String[] {"project", "artifactId"};
focal_class.type: String[]
focal_class.var_name: a
focal_class.declarator: v = new String[] {"project", "version"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] v = new String[] {"project", "version"};
focal_class.type: String[]
focal_class.var_name: v
focal_class.declarator: stack = new Stack<String>()
focal_class.modifier: private
focal_class.original_string: private Stack<String> stack = new Stack<String>();
focal_class.type: Stack<String>
focal_class.var_name: stack
focal_class.declarator: libid = new LibraryId()
focal_class.modifier: private
focal_class.original_string: private LibraryId libid = new LibraryId();
focal_class.type: LibraryId
focal_class.var_name: libid
focal_class.file: lang-java/src/main/java/org/eclipse/steady/java/PomParser.java
focal_class.identifier: PomParser
focal_class.class_method_signature: PomParser.startElement(String namespaceURI, String localName, String qName, Attributes atts)
focal_class.full_signature: public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
focal_class.identifier: startElement
focal_class.modifiers: public
focal_class.parameters: (String namespaceURI, String localName, String qName, Attributes atts)
focal_class.return: void
focal_class.signature: void startElement(String namespaceURI, String localName, String qName, Attributes atts)
focal_class.class_method_signature: PomParser.characters(char ch[], int start, int length)
focal_class.full_signature: public void characters(char ch[], int start, int length)
focal_class.identifier: characters
focal_class.modifiers: public
focal_class.parameters: (char ch[], int start, int length)
focal_class.return: void
focal_class.signature: void characters(char ch[], int start, int length)
focal_class.class_method_signature: PomParser.endElement(String namespaceURI, String localName, String qName)
focal_class.full_signature: public void endElement(String namespaceURI, String localName, String qName)
focal_class.identifier: endElement
focal_class.modifiers: public
focal_class.parameters: (String namespaceURI, String localName, String qName)
focal_class.return: void
focal_class.signature: void endElement(String namespaceURI, String localName, String qName)
focal_class.class_method_signature: PomParser.getLibraryId()
focal_class.full_signature: public LibraryId getLibraryId()
focal_class.identifier: getLibraryId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: LibraryId
focal_class.signature: LibraryId getLibraryId()
focal_class.superclass: extends DefaultHandler
focal_method.body: public LibraryId getLibraryId() {
      return this.libid;
    }
focal_method.class_method_signature: PomParser.getLibraryId()
focal_method.full_signature: public LibraryId getLibraryId()
focal_method.identifier: getLibraryId
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: LibraryId
focal_method.signature: LibraryId getLibraryId()