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.ScriptService
Tools to manipulate the data needed for the tagList macro.
- Since:
- 1.20.0
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBinName(char ch) Manages the process of identifying the Unicode block to which a character belongs.Handles the separation of tags into bins.parseSpaces(String userInput) Transforms the input of a user in the right format.
-
Constructor Details
-
TagListScriptService
public TagListScriptService()
-
-
Method Details
-
parseSpaces
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
Handles the separation of tags into bins.- Parameters:
tags- list of tags- Returns:
- the bins formed by the tags
-
getBinName
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
-