Package de.xima.fc.helper
Class PlaceholderStringTokenizer.PlaceholderStringPlaceholderToken
- java.lang.Object
-
- de.xima.fc.helper.PlaceholderStringTokenizer.PlaceholderStringToken
-
- de.xima.fc.helper.PlaceholderStringTokenizer.PlaceholderStringPlaceholderToken
-
- Enclosing class:
- PlaceholderStringTokenizer
public static final class PlaceholderStringTokenizer.PlaceholderStringPlaceholderToken extends PlaceholderStringTokenizer.PlaceholderStringToken
Represents a placeholder part of a string.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
String
getPrefix()
String
getSuffix()
void
setContent(String content)
Can be used to modify the placeholder content before passing the tokens back toPlaceholderStringTokenizer.stringify(Iterable)
.String
toString()
-
Methods inherited from class de.xima.fc.helper.PlaceholderStringTokenizer.PlaceholderStringToken
getEnd, getStart
-
-
-
-
Method Detail
-
getContent
public String getContent()
- Returns:
- The content of the placeholder, without the prefix and suffix, e.g.
tf1
.
-
getPrefix
public String getPrefix()
- Returns:
- The prefix of the placeholder, e.g.
[%
or[%$$
.
-
getSuffix
public String getSuffix()
- Returns:
- The suffix of the placeholder, e.g.
%]
.
-
setContent
public void setContent(String content)
Can be used to modify the placeholder content before passing the tokens back toPlaceholderStringTokenizer.stringify(Iterable)
.- Parameters:
content
- The new content of the placeholder, without the prefix and suffix, e.g.tf1
.
-
-