private static int getIndex(final NamedNodeMap namedNodeMap, final Map<Integer, List<String>> attributesOrderMap, final Node element, final int requiredIndex) { if (attributesOrderMap != null && element instanceof DeferredNode) { final int elementIndex = ((DeferredNode) element).getNodeIndex(); final List<String> attributesOrderList = attributesOrderMap.get(elementIndex); if (attributesOrderList != null) { final String attributeName = attributesOrderList.get(requiredIndex); for (int i = 0; i < namedNodeMap.getLength(); i++) { if (namedNodeMap.item(i).getNodeName().equals(attributeName)) { return i; } } } } return requiredIndex; }
int type = node.getNodeType(); switch (type) { "#synchronizeInfo: " + "node.getNodeType() = " + node.getNodeType() + ", class = " + node.getClass().getName());
private static int getIndex(final NamedNodeMap namedNodeMap, final Map<Integer, List<String>> attributesOrderMap, final Node element, final int requiredIndex) { if (attributesOrderMap != null && element instanceof DeferredNode) { final int elementIndex = ((DeferredNode) element).getNodeIndex(); final List<String> attributesOrderList = attributesOrderMap.get(elementIndex); if (attributesOrderList != null) { final String attributeName = attributesOrderList.get(requiredIndex); for (int i = 0; i < namedNodeMap.getLength(); i++) { if (namedNodeMap.item(i).getNodeName().equals(attributeName)) { return i; } } } } return requiredIndex; }
if (child instanceof DeferredNode) { int nodeIndex = ((DeferredNode)child).getNodeIndex(); if (nodeIndex == index) { place = child;