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 Details

    • 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 to PlaceholderStringTokenizer.stringify(Iterable).
      Parameters:
      content - The new content of the placeholder, without the prefix and suffix, e.g. tf1.
    • toString

      public String toString()
      Overrides:
      toString in class Object