Package org.contextmapper.dsl.hover.impl
Class AbstractCMLHoverTextProvider
java.lang.Object
org.contextmapper.dsl.hover.impl.AbstractCMLHoverTextProvider
- All Implemented Interfaces:
CMLHoverTextProvider
- Direct Known Subclasses:
HTMLHoverTextProvider4CML
,MarkdownHoverTextProvider4CML
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHoverText
(String keyword) Returns the hover text for a specific CML keyword.boolean
isKeywordRegistered
(String keyword) Returns whether the provider can give a hover text for a specific keyword or not.protected void
registerHoverText
(String keyword, String hoverText) protected abstract void
Override this method to register hover texts.
-
Constructor Details
-
AbstractCMLHoverTextProvider
public AbstractCMLHoverTextProvider()
-
-
Method Details
-
getHoverText
Description copied from interface:CMLHoverTextProvider
Returns the hover text for a specific CML keyword.- Specified by:
getHoverText
in interfaceCMLHoverTextProvider
- Parameters:
keyword
- the keyword for which the hover text shall be returned- Returns:
- the hover text for the given keyword
-
isKeywordRegistered
Description copied from interface:CMLHoverTextProvider
Returns whether the provider can give a hover text for a specific keyword or not.- Specified by:
isKeywordRegistered
in interfaceCMLHoverTextProvider
- Parameters:
keyword
- the keyword for which a hover text is asked- Returns:
- whether the keyword is registered or not
-
registerHoverTexts
protected abstract void registerHoverTexts()Override this method to register hover texts. -
registerHoverText
-