Class VersionSpecificDocumentationBean
- java.lang.Object
-
- com.atlassian.confluence.util.i18n.VersionSpecificDocumentationBean
-
- All Implemented Interfaces:
DocumentationBean
public class VersionSpecificDocumentationBean extends Object implements DocumentationBean
Constructs a version specific link to Confluence's documentation.
-
-
Constructor Summary
Constructors Constructor Description VersionSpecificDocumentationBean(String versionNumber, I18NBean i18NBean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String docLink)Returnstrueif the documentation link exists, otherwisefalse.StringgetAlt(String docLink)Retrieves the alt text for images associated with the link to help documentationStringgetLink(String key)Constructs a link to help documentationStringgetTitle(String docLink)Retrieves the title for the link to help documentationbooleanisLocal(String docLink)Retrieves the location of the help documentation
-
-
-
Method Detail
-
getLink
public String getLink(String key)
Description copied from interface:DocumentationBeanConstructs a link to help documentation- Specified by:
getLinkin interfaceDocumentationBean- Parameters:
key- the page title- Returns:
- link to help documentation
-
exists
public boolean exists(String docLink)
Description copied from interface:DocumentationBeanReturnstrueif the documentation link exists, otherwisefalse.- Specified by:
existsin interfaceDocumentationBean
-
getTitle
public String getTitle(String docLink)
Description copied from interface:DocumentationBeanRetrieves the title for the link to help documentation- Specified by:
getTitlein interfaceDocumentationBean- Parameters:
docLink- the page title- Returns:
- title for the link
-
getAlt
public String getAlt(String docLink)
Description copied from interface:DocumentationBeanRetrieves the alt text for images associated with the link to help documentation- Specified by:
getAltin interfaceDocumentationBean- Parameters:
docLink- the page title- Returns:
- alt text for images that may be used as or with the link
-
isLocal
public boolean isLocal(String docLink)
Description copied from interface:DocumentationBeanRetrieves the location of the help documentation- Specified by:
isLocalin interfaceDocumentationBean- Parameters:
docLink- the page title- Returns:
- true if the documentation is local to the instance, false if it is external
-
-