Class StringTool


  • public class StringTool
    extends java.lang.Object
    This class contains methods that are not supplied by the String class, but are used widely in XSLTs and will therefore be made available in Velocity via this tool.
    Since:
    6.2
    • Constructor Summary

      Constructors 
      Constructor Description
      StringTool()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generateUUID()  
      java.lang.StringBuilder getStringBuilder()  
      java.lang.String substringAfter​(java.lang.String haystack, java.lang.String needle)  
      java.lang.String substringBefore​(java.lang.String haystack, java.lang.String needle)  
      • Methods inherited from class java.lang.Object

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

      • StringTool

        public StringTool()
    • Method Detail

      • substringBefore

        public java.lang.String substringBefore​(java.lang.String haystack,
                                                java.lang.String needle)
      • substringAfter

        public java.lang.String substringAfter​(java.lang.String haystack,
                                               java.lang.String needle)
      • generateUUID

        public java.lang.String generateUUID()
      • getStringBuilder

        public java.lang.StringBuilder getStringBuilder()