Interface Token
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ActionToken,StringToken
public interface Token extends Serializable
Any token should provide a method to substitute "placeholder" with his value- Author:
- Eugen Fischer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisStringToken()StringsubstituteAttribute(FormatterSupport content)
-
-
-
Method Detail
-
substituteAttribute
String substituteAttribute(FormatterSupport content)
- Parameters:
content- must not be null- Returns:
- token specific template with substituted attribute value if attribute exists,
emptyString otherwise
-
isStringToken
boolean isStringToken()
- Returns:
- true if Token has no substitutions
-
-