Package ro.sync.ecss.extensions.dita
Class DITAIDElementLocator
- java.lang.Object
-
- ro.sync.ecss.extensions.api.link.ElementLocator
-
- ro.sync.ecss.extensions.commons.IDElementLocator
-
- ro.sync.ecss.extensions.dita.DITAIDElementLocator
-
@API(type=INTERNAL, src=PUBLIC) public class DITAIDElementLocator extends IDElementLocator
Implementation of an ElementLocator that locates elements based on a given link and checks if the attribute with the type ID matches the provided link and the class attribute contains 'topic/topic'.
-
-
Field Summary
-
Fields inherited from class ro.sync.ecss.extensions.commons.IDElementLocator
idVerifier
-
Fields inherited from class ro.sync.ecss.extensions.api.link.ElementLocator
link
-
-
Constructor Summary
Constructors Constructor Description DITAIDElementLocator(IDTypeVerifier idVerifier, java.lang.String link, boolean locateOnlyByElementID)
Constructor.
-
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 ro.sync.ecss.extensions.commons.IDElementLocator
endElement
-
-
-
-
Constructor Detail
-
DITAIDElementLocator
public DITAIDElementLocator(IDTypeVerifier idVerifier, java.lang.String link, boolean locateOnlyByElementID)
Constructor.- Parameters:
idVerifier
- Id type verifierlink
- The reference linklocateOnlyByElementID
-true
to only locate based on the element ID.
-
-
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 everystartElement
(even when the element is empty).- Overrides:
startElement
in 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 asAttr
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[])
-
-