Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.temp.shared.utils;

public interface TemplateSource {

    static final String SUBSTITUTION_ID_PREFIX = "{";
    static final String SUBSTITUTION_ID_SUFFIX = "}";
    static final String SUBSTITUTION_ID_NO_PREFIX = "{No";

    static final String SPACE_SUBSTITUTION_ID = "{Space}"; // used to force either leading or trailing spaces from being "trim()" away

    static final String DONT_SHOW_SUBSTITUTION_ID = "{DontShow}"; // Don't Show this block Indicator

    /**
     * Get the Template value associated with the key
     *
     * @param key
     *            Leading and trailing spaces are ignored
     *
     * @return null or the Template value associated with the key
     */
    String get(String key);

    /**
     * Get the Template value associated with the key or the defaultValue if the
     * key was not found or its value was empty
     *
     * @param key
     *            Leading and trailing spaces are ignored
     *
     * @return The Template value associated with the key or the defaultValue if
     *         the key was not found or its value was empty
     */
    String get(String key, String defaultValue);
}

Commits for litesoft/trunk/GWT_Sandbox/FormEngine/src/com/temp/shared/utils/TemplateSource.java

Diff revisions: vs.
Revision Author Commited Message
626 GeorgeS picture GeorgeS Wed 11 Apr, 2012 19:39:41 +0000