Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.sdk.api text
com.phoenixplugins.sdk.api.text

Class ReplacementText

  • java.lang.Object
    • com.phoenixplugins.sdk.api.text.ReplacementText
  • All Implemented Interfaces:
    Text


    public class ReplacementText
    extends Object
    implements Text
    • Constructor Summary

      Constructor and Description
      ReplacementText(Text source, String regex, Text replacement) 
    • Method Summary

      Modifier and Type Method and Description
      Text replaceText(String target, Text replacement)
      Replaces all substrings of this component's text that match the given regular expression with the specified replacement component.
      String toPlainText() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplacementText

        public ReplacementText(Text source,
                               String regex,
                               Text replacement)
    • Method Detail

      • replaceText

        public Text replaceText(String target,
                                Text replacement)
        Description copied from interface: Text
        Replaces all substrings of this component's text that match the given regular expression with the specified replacement component.
        Specified by:
        replaceText in interface Text
        Parameters:
        target - the regular expression to match
        replacement - the component to replace matches with
        Returns:
        a new Text instance with the replacements applied
      • toPlainText

        public String toPlainText()
        Specified by:
        toPlainText in interface Text
Last updated about 4 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more