(node) -> addTypeWithNameCheck(typeByNameMap, new SetType(node), node));
type = addType(subTypeNode, subTypeName, new SetType(subTypeNode, givenName, referencedName)); break;
type = new SetType(list.item(i));
private static Map<String, Type> parseTestXmlWithMap(final String xPathExpr, final String xml) throws ParserConfigurationException, XPathExpressionException, IOException, SAXException { final Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse( new ByteArrayInputStream(xml.getBytes())); final XPath xPath = XPathFactory.newInstance().newXPath(); final NodeList list = (NodeList)xPath.compile(xPathExpr).evaluate(document, XPathConstants.NODESET); final Map<String, Type> map = new HashMap<>(); final ParserOptions options = ParserOptions.builder() .stopOnError(true) .suppressOutput(true) .warningsFatal(true) .build(); document.setUserData(XmlSchemaParser.ERROR_HANDLER_KEY, new ErrorHandler(options), null); for (int i = 0, size = list.getLength(); i < size; i++) { final Type t = new SetType(list.item(i)); map.put(t.name(), t); } return map; } }
public void execute(final Node node) throws XPathExpressionException { addTypeWithNameCheck(typeByNameMap, new SetType(node), node); } });
(node) -> addTypeWithNameCheck(typeByNameMap, new SetType(node), node));
(node) -> addTypeWithNameCheck(typeByNameMap, new SetType(node), node));
type = addType(subTypeNode, subTypeName, new SetType(subTypeNode, givenName, referencedName)); break;
type = addType(subTypeNode, subTypeName, new SetType(subTypeNode, givenName, referencedName)); break;