Class XHTMLElementLocator


  • @API(type=INTERNAL,
         src=PUBLIC)
    public class XHTMLElementLocator
    extends IDElementLocator
    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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean startElement​(java.lang.String uri, java.lang.String localName, java.lang.String name, Attr[] atts)
      Notification received when the beginning of an element has been encountered.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XHTMLElementLocator

        public XHTMLElementLocator​(IDTypeVerifier idVerifier,
                                   java.lang.String link)
        Constructor.
        Parameters:
        idVerifier - Responsible to verify if an attribute has the ID type.
        link - The link to be identified.
    • Method Detail

      • startElement

        public boolean startElement​(java.lang.String uri,
                                    java.lang.String localName,
                                    java.lang.String name,
                                    Attr[] atts)
        Description copied from class: ElementLocator
        Notification 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 every startElement (even when the element is empty).
        Overrides:
        startElement in class IDElementLocator
        Parameters:
        uri - the namespace URI, or the empty string if the element has no namespace URI or if namespace processing is not being performed
        localName - the local name of the element
        name - the qualified name of the element
        atts - an array with the attributes attached to the element. If there are no attributes, it shall be empty. The attributes are represented as Attr objects.
        Returns:
        true if the current element is indicated by the link.
        See Also:
        IDElementLocator.startElement(java.lang.String, java.lang.String, java.lang.String, ro.sync.ecss.extensions.api.link.Attr[])