Package org.htmlunit.platform.util
Class XmlUtilsSunXercesHelper
- java.lang.Object
-
- org.htmlunit.platform.util.XmlUtilsSunXercesHelper
-
- All Implemented Interfaces:
XmlUtilsHelperAPI
public final class XmlUtilsSunXercesHelper extends java.lang.Object implements XmlUtilsHelperAPI
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Special processing if the Xerces parser is in use.
-
-
Constructor Summary
Constructors Constructor Description XmlUtilsSunXercesHelper()
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Integer,java.util.List<java.lang.String>>
getAttributesOrderMap(org.w3c.dom.Document document)
Returns internal Xerces details about all elements in the specified document.int
getIndex(org.w3c.dom.NamedNodeMap namedNodeMap, java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> attributesOrderMap, org.w3c.dom.Node element, int requiredIndex)
Helper.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.htmlunit.platform.XmlUtilsHelperAPI
getPrivate
-
-
-
-
Method Detail
-
getAttributesOrderMap
public java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> getAttributesOrderMap(org.w3c.dom.Document document)
Returns internal Xerces details about all elements in the specified document. The id of the returnedMap
is thenodeIndex
of an element, and the list is the array of ordered attributes names.- Specified by:
getAttributesOrderMap
in 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(org.w3c.dom.NamedNodeMap namedNodeMap, java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> attributesOrderMap, org.w3c.dom.Node element, int requiredIndex)
Helper.- Specified by:
getIndex
in 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
-
-