@Test public void testParse_NS2_XSD() { Element xmlRoot = getXmlRoot("extractor_dummy_ns2_xsd.xml"); parser.parse("alocation", xmlRoot); verify(mockNS2).parse("alocation", xmlRoot); verifyZeroInteractions(mockNSDefault, mockNS1); }
@Override public ExtractorModelContainer parse(String location, Element xmlRoot) { String ns = xmlRoot.getNamespaceURI(); return getDelegate(ns).parse(location, xmlRoot); }
VersionedExtractorModelParser implements DOMExtractorModelParser { @Override public ExtractorModelContainer parse(String location, Element xmlRoot) { String ns = xmlRoot.getNamespaceURI(); return getDelegate(ns).parse(location, xmlRoot); } }
VersionedExtractorModelParser implements DOMExtractorModelParser { @Override public ExtractorModelContainer parse(String location, Element xmlRoot) { String ns = xmlRoot.getNamespaceURI(); return getDelegate(ns).parse(location, xmlRoot); } VersionedExtractorModelParser(Map<String, DOMExtractorModelParser> parsersByNS, String defaultNS); }
VersionedExtractorModelParser implements DOMExtractorModelParser { @Override public ExtractorModelContainer parse(String location, Element xmlRoot) { String ns = xmlRoot.getNamespaceURI(); return getDelegate(ns).parse(location, xmlRoot); } VersionedExtractorModelParser(Map<String, DOMExtractorModelParser> parsersByNS, String defaultNS); @Override ExtractorModelContainer parse(String location, Element xmlRoot); }
VersionedExtractorModelParser implements DOMExtractorModelParser { @Override public ExtractorModelContainer parse(String location, Element xmlRoot) { String ns = xmlRoot.getNamespaceURI(); return getDelegate(ns).parse(location, xmlRoot); } VersionedExtractorModelParser(Map<String, DOMExtractorModelParser> parsersByNS, String defaultNS); @Override ExtractorModelContainer parse(String location, Element xmlRoot);  }