Class TagCloudOnWordsGenerator.WordTagCloudItem
- java.lang.Object
-
- org.ametys.plugins.tagcloud.generators.TagCloudOnWordsGenerator.WordTagCloudItem
-
- All Implemented Interfaces:
AbstractTagCloudGenerator.TagCloudItem
- Enclosing class:
- TagCloudOnWordsGenerator
private class TagCloudOnWordsGenerator.WordTagCloudItem extends Object implements AbstractTagCloudGenerator.TagCloudItem
-
-
Field Summary
Fields Modifier and Type Field Description private String
_keyword
private int
_occurrence
private int
_position
-
Constructor Summary
Constructors Constructor Description WordTagCloudItem(int occurrence, String keyword, int position)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOccurrenceCount()
Returns the number of occurrenceint
getPosition()
Get the original position.I18nizableText
getWord()
Get the tag cloud word to display
-
-
-
Field Detail
-
_occurrence
private int _occurrence
-
_position
private int _position
-
-
Constructor Detail
-
WordTagCloudItem
public WordTagCloudItem(int occurrence, String keyword, int position)
Constructor- Parameters:
occurrence
- the number of occurrencekeyword
- the keywordposition
- the original position
-
-
Method Detail
-
getWord
public I18nizableText getWord()
Description copied from interface:AbstractTagCloudGenerator.TagCloudItem
Get the tag cloud word to display- Specified by:
getWord
in interfaceAbstractTagCloudGenerator.TagCloudItem
- Returns:
- The tag cloud word
-
getOccurrenceCount
public int getOccurrenceCount()
Description copied from interface:AbstractTagCloudGenerator.TagCloudItem
Returns the number of occurrence- Specified by:
getOccurrenceCount
in interfaceAbstractTagCloudGenerator.TagCloudItem
- Returns:
- the number of occurrence
-
getPosition
public int getPosition()
Description copied from interface:AbstractTagCloudGenerator.TagCloudItem
Get the original position.- Specified by:
getPosition
in interfaceAbstractTagCloudGenerator.TagCloudItem
- Returns:
- the original position.
-
-