Class ActionToken
- java.lang.Object
-
- io.cui.tools.formatting.template.token.ActionToken
-
- All Implemented Interfaces:
Token,Serializable
public class ActionToken extends Object implements Token
String Action Token store template and attribute name, and replace attribute with his value inside the template on execution of substituteAttribute(FormatterSupport)- Author:
- Eugen Fischer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActionToken(String template, String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)inthashCode()booleanisStringToken()StringsubstituteAttribute(FormatterSupport content)StringtoString()
-
-
-
Constructor Detail
-
ActionToken
public ActionToken(String template, String token)
- Parameters:
template-token-
-
-
Method Detail
-
substituteAttribute
public String substituteAttribute(FormatterSupport content)
- Specified by:
substituteAttributein interfaceToken- Parameters:
content- must not be null- Returns:
- token specific template with substituted attribute value if attribute exists,
emptyString otherwise
-
isStringToken
public boolean isStringToken()
- Specified by:
isStringTokenin interfaceToken- Returns:
- true if Token has no substitutions
-
-