Package adalid.commons.velocity
Class VelocityAid
java.lang.Object
adalid.commons.velocity.VelocityAid
- Author:
- Jorge Campins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]static charast()static StringAST()static charbs()static StringBS()static charbsl()static StringBSL()static Objectstatic charcom()static StringCOM()static charcr()static StringCR()static StringdiscloseELE(String string) static chardot()static StringDOT()static chardqm()static StringDQM()static Stringstatic StringEMPTY()static StringencloseELE(String string) static StringEOL()static BooleanFALSE()static charff()static StringFF()static Stringstatic Object[]getNewArray(Collection col) static Object[]getNewArray(Map map) static ArrayListstatic LinkedHashMapstatic LinkedHashSetstatic Stackstatic TreeMapstatic TreeSetstatic charht()static StringHT()static int[]intArray(int... i) static int[]intArrayFor(int start, int stop, int step) static StringintArrayForString(int start, int stop, int step, String separator) javadocLines(String string) javadocLines(String string, int max) static charlcb()static StringLCB()static charlf()static StringLF()static Stringstatic Stringstatic charlrb()static StringLRB()static charlsb()static StringLSB()static Objectstatic charrcb()static StringRCB()static charrrb()static StringRRB()static charrsb()static StringRSB()static <T extends Comparable<? super T>>
Collection<T> sortCollection(Collection<T> collection) sortedPropertyNames(Properties properties) static charspc()static StringSPC()split a text into a list of lines.static charsqm()static StringSQM()static StringTAB()static StringtoArrayString(Object... objects) static String[]toStringArray(Object... objects) static BooleanTRUE()static charund()static StringUND()static Enumstatic Objectstatic charvt()static StringVT()
-
Constructor Details
-
VelocityAid
public VelocityAid()
-
-
Method Details
-
TRUE
-
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
-
TAB
-
EMPTY
-
BS
-
HT
-
LF
-
VT
-
FF
-
CR
-
LCB
-
RCB
-
LRB
-
RRB
-
LSB
-
RSB
-
BSL
-
SPC
-
SQM
-
DQM
-
DOT
-
COM
-
UND
-
AST
-
discloseELE
-
encloseELE
-
echo
-
log
-
log
-
sortCollection
public static <T extends Comparable<? super T>> Collection<T> sortCollection(Collection<T> collection) -
valueOf
-
values
-
getNewStack
- Returns:
- a new instance of Stack
-
getNewArrayList
- Returns:
- a new instance of ArrayList
-
getNewLinkedHashMap
- Returns:
- a new instance of LinkedHashMap
-
getNewLinkedHashSet
- Returns:
- a new instance of TreeSet
-
getNewTreeMap
- Returns:
- a new instance of TreeMap
-
getNewTreeSet
- Returns:
- a new instance of TreeSet
-
getNewArray
-
getNewArray
-
toStringArray
-
toArrayString
-
coalesce
- Parameters:
objects- objects to test- Returns:
- the first non-null parameter
-
nvl
- Parameters:
objects- objects to test- Returns:
- the first non-null/non-blank parameter
-
array
-
intArray
public static int[] intArray(int... i) -
intArrayFor
public static int[] intArrayFor(int start, int stop, int step) -
intArrayForString
-
javadocLines
-
javadocLines
-
split
-
split
-
split
-
split
-
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
-
sortedPropertyNames
-