| java.lang.Object com.go.tea.runtime.DefaultContext
DefaultContext | abstract public class DefaultContext implements UtilityContext(Code) | | The default runtime context class that Tea templates get compiled to use.
All functions callable from a template are defined in the context. To add
more or override existing ones, do so when extending this class.
author: Brian S O'Neill version: 30 , 01/07/03 |
Method Summary | |
public String | cardinal(Long n) | public String | cardinal(long n) | public Date | currentDate() | public void | dateFormat(String format) | public void | dateFormat(String format, String timeZoneID) | public boolean | endsWith(String str, String suffix) | public int[] | find(String str, String search) | public int[] | find(String str, String search, int fromIndex) | public int | findFirst(String str, String search) | public int | findFirst(String str, String search, int fromIndex) | public int | findLast(String str, String search) | public int | findLast(String str, String search, int fromIndex) | public Locale[] | getAvailableLocales() | public TimeZone[] | getAvailableTimeZones() | public String | getDateFormat() | public String | getDateFormatTimeZone() | public java.util.Locale | getLocale() | public String | getNullFormat() | public String | getNumberFormat() | public String | getNumberFormatInfinity() | public String | getNumberFormatNaN() | public void | nullFormat(String format) | public void | numberFormat(String format) | public void | numberFormat(String format, String infinity, String NaN) | public String | ordinal(Long n) | public String | ordinal(long n) | abstract public void | print(Object obj) Method that is the runtime receiver. | public void | print(Date date) | public void | print(Number n) | public void | print(int n) | public void | print(float n) | public void | print(long n) | public void | print(double n) | public String | replace(String source, String pattern, String replacement) | public String | replace(String source, String pattern, String replacement, int fromIndex) | public String | replace(String source, Map patternReplacements) | public String | replaceFirst(String source, String pattern, String replacement) | public String | replaceFirst(String source, String pattern, String replacement, int fromIndex) | public String | replaceLast(String source, String pattern, String replacement) | public String | replaceLast(String source, String pattern, String replacement, int fromIndex) | public void | setLocale(Locale locale) | public void | setLocale(String language, String country) | public void | setLocale(String language, String country, String variant) | public String | shortOrdinal(Long n) | public String | shortOrdinal(long n) | public boolean | startsWith(String str, String prefix) | public String | substring(String str, int startIndex) | public String | substring(String str, int startIndex, int endIndex) | public String | toLowerCase(String str) | public String | toString(Object obj) | public String | toString(String str) | public String | toString(Date date) | public String | toString(Number n) | public String | toString(int n) | public String | toString(float n) | public String | toString(long n) | public String | toString(double n) | public String | toUpperCase(String str) | public String | trim(String str) | public String | trimLeading(String str) | public String | trimTrailing(String str) |
DefaultContext | public DefaultContext()(Code) | | |
getAvailableLocales | public Locale[] getAvailableLocales()(Code) | | |
getDateFormatTimeZone | public String getDateFormatTimeZone()(Code) | | |
getNumberFormatInfinity | public String getNumberFormatInfinity()(Code) | | |
|
|