Class DocbookLinkTextResolver
java.lang.Object
ro.sync.ecss.extensions.api.link.LinkTextResolver
ro.sync.ecss.extensions.docbook.link.DocbookLinkTextResolver
Resolves local docbook xrefs. The content of the link is given by either
 the xreflabel attribute or a title(info/title) child of the targeted element.
- Since:
 - 14.2
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidactivated(AuthorAccess authorAccess) Signals that this resolver has entered in use.voidAny cache should be cleared in order to prepare for future evaluations.voiddeactivated(AuthorAccess authorAccess) Signals that this resolver has exit from use.static StringgetTitleValue(AuthorElement elem) Checks if the element has a TITLE child or an INFO/TITLE child and returns it's value.voidrefresh()Signals a major refresh.resolveReference(AuthorNode node) Gets a text representation for the reference.Methods inherited from class ro.sync.ecss.extensions.api.link.LinkTextResolver
refreshNodeReferences, update 
- 
Constructor Details
- 
DocbookLinkTextResolver
public DocbookLinkTextResolver() 
 - 
 - 
Method Details
- 
resolveReference
Description copied from class:LinkTextResolverGets a text representation for the reference. This text will be used inside author page next to the the link element.- Overrides:
 resolveReferencein classLinkTextResolver- Parameters:
 node- Author node.- Returns:
 - The link text.
 - Throws:
 InvalidLinkException- When it is not possible to resolve the link.- See Also:
 
 - 
refresh
public void refresh()Description copied from class:LinkTextResolverSignals a major refresh. Any cache should be cleared in order to prepare for future evaluations.- Overrides:
 refreshin classLinkTextResolver- See Also:
 
 - 
clearReferencesCache
public void clearReferencesCache()Description copied from class:LinkTextResolverAny cache should be cleared in order to prepare for future evaluations.- Overrides:
 clearReferencesCachein classLinkTextResolver- See Also:
 
 - 
getTitleValue
Checks if the element has a TITLE child or an INFO/TITLE child and returns it's value.- Parameters:
 elem- The current element.- Returns:
 - The title value.
 
 - 
activated
Description copied from class:LinkTextResolverSignals that this resolver has entered in use. All kinds of listeners can be added on this call (likeAuthorMouseListenerorAuthorListener).- Overrides:
 activatedin classLinkTextResolver- Parameters:
 authorAccess- TheAuthorAccessof the Author page where the listener was activated.- See Also:
 
 - 
deactivated
Description copied from class:LinkTextResolverSignals that this resolver has exit from use. All listeners should be removed on this call.- Overrides:
 deactivatedin classLinkTextResolver- Parameters:
 authorAccess- TheAuthorAccessof the Author page where the listener was activated.- See Also:
 
 
 -