public abstract class TagUtils extends Object
Some methods to work with a tags.
| Modifier and Type | Method and Description |
|---|---|
static String[] |
buildTags(String freeText)
Build tags from a string.
|
static String[] |
buildTags(String freeText,
int minLengthOfSingleTag)
Build tags from a text.
|
static String[] |
buildTags(String freeText,
int minLengthOfSingleTag,
CaseFormat caseFormat)
Build tags from a text.
|
static String |
buildTagString(String freeText)
Build a string with text: First
buildTags(String, int)
is called with a minimum length of 2 than
buildTagString(String[], int) with a maximum length of
255. |
static String |
buildTagString(String[] tags)
Build a string from the tags.
|
static String |
buildTagString(String[] tags,
int maxLengthOfTagString)
Build a string from the tags.
|
static String |
buildTagString(String freeText,
int minLengthOfSingleTag)
Build a string with text: First
buildTags(String, int)
than buildTagString(String[], int) with a maximum length
of 255. |
static String |
buildTagString(String freeText,
int minLengthOfSingleTag,
CaseFormat caseFormat)
Build a string with text: First
buildTags(String, int)
than buildTagString(String[], int) with a maximum length
of 255. |
static String |
buildTagString(String freeText,
int minLengthOfSingleTag,
int maxLengthOfTagString)
Build a string with text: First
buildTags(String, int)
is called than buildTagString(String[], int). |
static String |
buildTagString(String freeText,
int minLengthOfSingleTag,
int maxLengthOfTagString,
CaseFormat caseFormat)
Build a string with text: First
buildTags(String, int)
is called than buildTagString(String[], int). |
public static String[] buildTags(String freeText)
2.freeText - the textpublic static String[] buildTags(String freeText, int minLengthOfSingleTag)
'free wifi'),
replace the spaces with a plus character (e. g. 'free+wifi').freeText - the textminLengthOfSingleTag - the minimum lengthpublic static String[] buildTags(String freeText, int minLengthOfSingleTag, CaseFormat caseFormat)
'free wifi'),
replace the spaces with a plus character (e. g. 'free+wifi').freeText - the textminLengthOfSingleTag - the minimum lengthcaseFormat - should the tags be lower case, upper case or untouched?public static String buildTagString(String[] tags)
255.tags - the tagspublic static String buildTagString(String[] tags, int maxLengthOfTagString)
tags - the tagsmaxLengthOfTagString - the maximum lengthpublic static String buildTagString(String freeText)
buildTags(String, int)
is called with a minimum length of 2 than
buildTagString(String[], int) with a maximum length of
255.freeText - a string with tagspublic static String buildTagString(String freeText, int minLengthOfSingleTag)
buildTags(String, int)
than buildTagString(String[], int) with a maximum length
of 255.freeText - a string with tagsminLengthOfSingleTag - the minimum length of one tagpublic static String buildTagString(String freeText, int minLengthOfSingleTag, CaseFormat caseFormat)
buildTags(String, int)
than buildTagString(String[], int) with a maximum length
of 255.freeText - a string with tagsminLengthOfSingleTag - the minimum length of one tagcaseFormat - should the tags be lower case, upper case or untouched?public static String buildTagString(String freeText, int minLengthOfSingleTag, int maxLengthOfTagString)
buildTags(String, int)
is called than buildTagString(String[], int).freeText - a string with tagsminLengthOfSingleTag - the minimum length of one tagmaxLengthOfTagString - the maximum length of the parsed tagspublic static String buildTagString(String freeText, int minLengthOfSingleTag, int maxLengthOfTagString, CaseFormat caseFormat)
buildTags(String, int)
is called than buildTagString(String[], int).freeText - a string with tagsminLengthOfSingleTag - the minimum length of one tagmaxLengthOfTagString - the maximum length of the parsed tagscaseFormat - should the tags be lower case, upper case or untouched?Copyright © 2017 bremersee.org. All rights reserved.