Package ro.sync.ecss.extensions.commons
Class DefaultElementLocatorProvider
- java.lang.Object
-
- ro.sync.ecss.extensions.commons.DefaultElementLocatorProvider
-
- All Implemented Interfaces:
Extension
,ElementLocatorProvider
- Direct Known Subclasses:
DITAElementLocatorProvider
@API(type=INTERNAL, src=PUBLIC) public class DefaultElementLocatorProvider extends java.lang.Object implements ElementLocatorProvider
Default implementation for locating elements based on a given link. Depending on the link structure the following cases are covered:
- XInclude element scheme :element(/1/2)
see http://www.w3.org/TR/2003/REC-xptr-element-20030325/
- ID based links : the link represents the value of an attribute of type ID.
-
-
Constructor Summary
Constructors Constructor Description DefaultElementLocatorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
ElementLocator
getElementLocator(IDTypeVerifier idVerifier, java.lang.String link)
Get an element locator capable of locating the element pointed by this link.
-
-
-
Method Detail
-
getElementLocator
public ElementLocator getElementLocator(IDTypeVerifier idVerifier, java.lang.String link)
Description copied from interface:ElementLocatorProvider
Get an element locator capable of locating the element pointed by this link.- Specified by:
getElementLocator
in interfaceElementLocatorProvider
- Parameters:
idVerifier
- Verifies if a given attribute type is ID.link
- The link that points to the element.- Returns:
- An
ElementLocator
capable of locating the element indicated by the given link. - See Also:
ElementLocatorProvider.getElementLocator(ro.sync.ecss.extensions.api.link.IDTypeVerifier, java.lang.String)
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceExtension
- Returns:
- The description of the extension.
- See Also:
Extension.getDescription()
-
-