Package ro.sync.ecss.extensions.xhtml
Class XHTMLElementLocator
java.lang.Object
ro.sync.ecss.extensions.api.link.ElementLocator
ro.sync.ecss.extensions.commons.IDElementLocator
ro.sync.ecss.extensions.xhtml.XHTMLElementLocator
Locator for a XHTML document. An internal reference can refer an
id
attribute or the name attribute of an a element.
The name attribute is not of ID type so it needs to be specifically
handled.-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.commons.IDElementLocator
idVerifierFields inherited from class ro.sync.ecss.extensions.api.link.ElementLocator
link -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstartElement(String uri, String localName, String name, Attr[] atts) Notification received when the beginning of an element has been encountered.Methods inherited from class ro.sync.ecss.extensions.commons.IDElementLocator
endElement
-
Constructor Details
-
XHTMLElementLocator
Constructor.- Parameters:
idVerifier- Responsible to verify if an attribute has the ID type.link- The link to be identified.
-
-
Method Details
-
startElement
Description copied from class:ElementLocatorNotification received when the beginning of an element has been encountered. This method is invoked at the beginning of every element in the XML document; an event will be fired for everystartElement(even when the element is empty).- Overrides:
startElementin classIDElementLocator- Parameters:
uri- the namespace URI, or the empty string if the element has no namespace URI or if namespace processing is not being performedlocalName- the local name of the elementname- the qualified name of the elementatts- an array with the attributes attached to the element. If there are no attributes, it shall be empty. The attributes are represented asAttrobjects.- Returns:
trueif the current element is indicated by the link.- See Also:
-