public class TokenIterator extends Object
| Constructor and Description |
|---|
TokenIterator(List<Token> tokens) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInterpolatedMessage() |
boolean |
hasMoreInterpolationTerms()
Called to advance the next interpolation term of the message descriptor.
|
String |
nextInterpolationTerm() |
void |
replaceCurrentInterpolationTerm(String replacement)
Replaces the current interpolation term with the given string.
|
public boolean hasMoreInterpolationTerms()
throws MessageDescriptorFormatException
false all interpolation terms have been processed and getInterpolatedMessage()
can be called.true in case there are more message parameters, false otherwise.MessageDescriptorFormatException - in case the message descriptor is invalidpublic String nextInterpolationTerm()
public void replaceCurrentInterpolationTerm(String replacement)
replacement - The string to replace the current term with.public String getInterpolatedMessage()
Copyright © 2018 JBoss by Red Hat. All rights reserved.