Class LinePrefixCleaner


  • @ProviderType
    @Deprecated(since="2024-02-12")
    public class LinePrefixCleaner
    extends java.lang.Object
    Deprecated.
    Usage of this deprecated API is not supported in AEM as a Cloud Service.
    Removes an prefix at the beginning of each line in a String. Used for embedding CND files in repoinit statements and hiding them from the Sling provisioning model parser which fails on statements like [sling:someNodetype] which are similar to provisioning model sections.
    • Constructor Summary

      Constructors 
      Constructor Description
      LinePrefixCleaner()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String removePrefix​(java.lang.String prefix, java.lang.String textBlock)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • LinePrefixCleaner

        public LinePrefixCleaner()
        Deprecated.
    • Method Detail

      • removePrefix

        public java.lang.String removePrefix​(java.lang.String prefix,
                                             java.lang.String textBlock)
        Deprecated.