Class XmlUtilsXercesHelper
java.lang.Object
org.htmlunit.platform.util.XmlUtilsXercesHelper
- All Implemented Interfaces:
XmlUtilsHelperAPI
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Special processing if the Xerces parser is in use.
Special processing if the Xerces parser is in use.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributesOrderMap(Document document) Returns internal Xerces details about all elements in the specified document.intgetIndex(NamedNodeMap namedNodeMap, Map<Integer, List<String>> attributesOrderMap, Node element, int requiredIndex) Helper.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XmlUtilsHelperAPI
getPrivate
-
Constructor Details
-
XmlUtilsXercesHelper
public XmlUtilsXercesHelper()Ctor.
-
-
Method Details
-
getAttributesOrderMap
Returns internal Xerces details about all elements in the specified document. The id of the returnedMapis thenodeIndexof an element, and the list is the array of ordered attributes names.- Specified by:
getAttributesOrderMapin interfaceXmlUtilsHelperAPI- Parameters:
document- the document- Returns:
- the map of an element index with its ordered attribute names or null if the provided document is not supported
-
getIndex
public int getIndex(NamedNodeMap namedNodeMap, Map<Integer, List<String>> attributesOrderMap, Node element, int requiredIndex) Helper.- Specified by:
getIndexin interfaceXmlUtilsHelperAPI- Parameters:
namedNodeMap- the node mapattributesOrderMap- the order mapelement- the noderequiredIndex- the required index- Returns:
- the index or -1 if the provided element is not supported
-