Class VelocityAid

java.lang.Object
adalid.commons.velocity.VelocityAid

public class VelocityAid extends Object
Author:
Jorge Campins
  • Constructor Details

    • VelocityAid

      public VelocityAid()
  • Method Details

    • TRUE

      public static Boolean TRUE()
    • FALSE

      public static Boolean FALSE()
    • bs

      public static char bs()
    • ht

      public static char ht()
    • lf

      public static char lf()
    • vt

      public static char vt()
    • ff

      public static char ff()
    • cr

      public static char cr()
    • lcb

      public static char lcb()
    • rcb

      public static char rcb()
    • lrb

      public static char lrb()
    • rrb

      public static char rrb()
    • lsb

      public static char lsb()
    • rsb

      public static char rsb()
    • bsl

      public static char bsl()
    • spc

      public static char spc()
    • sqm

      public static char sqm()
    • dqm

      public static char dqm()
    • dot

      public static char dot()
    • com

      public static char com()
    • und

      public static char und()
    • ast

      public static char ast()
    • EOL

      public static String EOL()
    • TAB

      public static String TAB()
    • EMPTY

      public static String EMPTY()
    • BS

      public static String BS()
    • HT

      public static String HT()
    • LF

      public static String LF()
    • VT

      public static String VT()
    • FF

      public static String FF()
    • CR

      public static String CR()
    • LCB

      public static String LCB()
    • RCB

      public static String RCB()
    • LRB

      public static String LRB()
    • RRB

      public static String RRB()
    • LSB

      public static String LSB()
    • RSB

      public static String RSB()
    • BSL

      public static String BSL()
    • SPC

      public static String SPC()
    • SQM

      public static String SQM()
    • DQM

      public static String DQM()
    • DOT

      public static String DOT()
    • COM

      public static String COM()
    • UND

      public static String UND()
    • AST

      public static String AST()
    • discloseELE

      public static String discloseELE(String string)
    • encloseELE

      public static String encloseELE(String string)
    • echo

      public static String echo(String string)
    • log

      public static String log(String level, String message)
    • log

      public static String log(String level, String message, boolean echo)
    • sortCollection

      public static <T extends Comparable<? super T>> Collection<T> sortCollection(Collection<T> collection)
    • valueOf

      public static Enum valueOf(Class<?> clazz, String name)
    • values

      public static Object values(Class<?> clazz)
    • getNewStack

      public static Stack getNewStack()
      Returns:
      a new instance of Stack
    • getNewArrayList

      public static ArrayList getNewArrayList()
      Returns:
      a new instance of ArrayList
    • getNewLinkedHashMap

      public static LinkedHashMap getNewLinkedHashMap()
      Returns:
      a new instance of LinkedHashMap
    • getNewLinkedHashSet

      public static LinkedHashSet getNewLinkedHashSet()
      Returns:
      a new instance of TreeSet
    • getNewTreeMap

      public static TreeMap getNewTreeMap()
      Returns:
      a new instance of TreeMap
    • getNewTreeSet

      public static TreeSet getNewTreeSet()
      Returns:
      a new instance of TreeSet
    • getNewArray

      public static Object[] getNewArray(Map map)
    • getNewArray

      public static Object[] getNewArray(Collection col)
    • toStringArray

      public static String[] toStringArray(Object... objects)
    • toArrayString

      public static String toArrayString(Object... objects)
    • coalesce

      public static Object coalesce(Object... objects)
      Parameters:
      objects - objects to test
      Returns:
      the first non-null parameter
    • nvl

      public static Object nvl(Object... objects)
      Parameters:
      objects - objects to test
      Returns:
      the first non-null/non-blank parameter
    • array

      public static String[] array(String... string)
    • intArray

      public static int[] intArray(int... i)
    • intArrayFor

      public static int[] intArrayFor(int start, int stop, int step)
    • intArrayForString

      public static String intArrayForString(int start, int stop, int step, String separator)
    • javadocLines

      public static List<String> javadocLines(String string)
    • javadocLines

      public static List<String> javadocLines(String string, int max)
    • split

      public static List<String> split(String string)
    • split

      public static List<String> split(String string, int max)
    • split

      public static List<String> split(String string, int max, String separator)
    • split

      public static List<String> split(String string, int max, String separator, boolean separatorLine)
    • split

      public static List<String> split(String string, int max, String separator, boolean separatorLine, String prefix)
      split a text into a list of lines.
      Parameters:
      string - the text to split.
      max - the maximum line length.
      separator - the paragraph separator string.
      separatorLine - if true, the paragraph separator is added as a line between paragraphs.
      prefix - the new line prefix
      Returns:
      the list of split.
    • fixPath

      public static String fixPath(String path)
    • sortedPropertyNames

      public static Set<String> sortedPropertyNames(Properties properties)