Package com.xwiki.macros.script
Class TagListScriptService
- java.lang.Object
-
- com.xwiki.macros.script.TagListScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Named("taglist") @Singleton @Unstable public class TagListScriptService extends Object implements org.xwiki.script.service.ScriptServiceTools to manipulate the data needed for the tagList macro.- Since:
- 1.20.0
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description TagListScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBinName(char ch)Manages the process of identifying the Unicode block to which a character belongs.Map<String,List<String>>getBins(List<String> tags)Handles the separation of tags into bins.StringparseSpaces(String userInput)Transforms the input of a user in the right format.
-
-
-
Method Detail
-
parseSpaces
public String parseSpaces(String userInput)
Transforms the input of a user in the right format.- Parameters:
userInput- string with spaces- Returns:
- returns the user input in the right format
-
getBins
public Map<String,List<String>> getBins(List<String> tags)
Handles the separation of tags into bins.- Parameters:
tags- list of tags- Returns:
- the bins formed by the tags
-
getBinName
public String getBinName(char ch)
Manages the process of identifying the Unicode block to which a character belongs.- Parameters:
ch- character for which we want to find the block- Returns:
- block name
-
-