final EnumType enumType = new EnumType(valueRefNode); if (enumType.encodingType() != primitiveType)
(node) -> addTypeWithNameCheck(typeByNameMap, new EnumType(node), node));
type = addType(subTypeNode, subTypeName, new EnumType(subTypeNode, givenName, referencedName)); break;
type = new EnumType(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 EnumType(list.item(i)); map.put(t.name(), t); } return map; } }
public void execute(final Node node) throws XPathExpressionException { addTypeWithNameCheck(typeByNameMap, new EnumType(node), node); } });
final EnumType enumType = new EnumType(valueRefNode); if (enumType.encodingType() != primitiveType)
final EnumType enumType = new EnumType(valueRefNode); if (enumType.encodingType() != primitiveType)
(node) -> addTypeWithNameCheck(typeByNameMap, new EnumType(node), node));
(node) -> addTypeWithNameCheck(typeByNameMap, new EnumType(node), node));
type = addType(subTypeNode, subTypeName, new EnumType(subTypeNode, givenName, referencedName)); break;
type = addType(subTypeNode, subTypeName, new EnumType(subTypeNode, givenName, referencedName)); break;