Class Placeholder
java.lang.Object
ua.mcchickenstudio.opencreative.coding.placeholders.Placeholder
- All Implemented Interfaces:
ExtensionContent
- Direct Known Subclasses:
KeyPlaceholder, KeyValuePlaceholder
Placeholder
This class represents a special text, that will be replaced while parsing text coding values.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ExtensionContent
getDescription, getExtensionId, getName
-
Constructor Details
-
Placeholder
public Placeholder()
-
-
Method Details
-
matches
Returnstrueif specified text contains placeholders that can be parsed with this class.- Parameters:
text- text to check.- Returns:
- true - placeholders detected, false - not detected.
-
parse
Returns text with parsed placeholders from this class.- Parameters:
text- text to parse.handler- action handler.action- action.- Returns:
- parsed text
-
toString
-