public class TagUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_FIELD_LENGTH |
Constructor and Description |
---|
TagUtil() |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
extractTags(String words)
Detects words in the passed string and creates a list of tags.
|
static String |
normalizeTags(String words)
Normalizes the passed string extracting all tags and producing anither
string containing all tags separated by a comma.
|
public static final int MAX_FIELD_LENGTH
public static Set<String> extractTags(String words)
Atention: Recognized tags are words of min. MIN_CHARS chars and max MAX_CHARS characters.
words
- public static String normalizeTags(String words)
Atention: The returned string is not more long than MAX_FIELD_LENGTH characters.
words
- The string to be normalizedCopyright © 2008-2014 Logical Objects. All Rights Reserved.