Java Doc for DefaultContext.java in  » Template-Engine » Tea » com » go » tea » runtime » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Template Engine » Tea » com.go.tea.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Constructor Summary
public  DefaultContext()
    

Method Summary
public  Stringcardinal(Long n)
    
public  Stringcardinal(long n)
    
public  DatecurrentDate()
    
public  voiddateFormat(String format)
    
public  voiddateFormat(String format, String timeZoneID)
    
public  booleanendsWith(String str, String suffix)
    
public  int[]find(String str, String search)
    
public  int[]find(String str, String search, int fromIndex)
    
public  intfindFirst(String str, String search)
    
public  intfindFirst(String str, String search, int fromIndex)
    
public  intfindLast(String str, String search)
    
public  intfindLast(String str, String search, int fromIndex)
    
public  Locale[]getAvailableLocales()
    
public  TimeZone[]getAvailableTimeZones()
    
public  StringgetDateFormat()
    
public  StringgetDateFormatTimeZone()
    
public  java.util.LocalegetLocale()
    
public  StringgetNullFormat()
    
public  StringgetNumberFormat()
    
public  StringgetNumberFormatInfinity()
    
public  StringgetNumberFormatNaN()
    
public  voidnullFormat(String format)
    
public  voidnumberFormat(String format)
    
public  voidnumberFormat(String format, String infinity, String NaN)
    
public  Stringordinal(Long n)
    
public  Stringordinal(long n)
    
abstract public  voidprint(Object obj)
     Method that is the runtime receiver.
public  voidprint(Date date)
    
public  voidprint(Number n)
    
public  voidprint(int n)
    
public  voidprint(float n)
    
public  voidprint(long n)
    
public  voidprint(double n)
    
public  Stringreplace(String source, String pattern, String replacement)
    
public  Stringreplace(String source, String pattern, String replacement, int fromIndex)
    
public  Stringreplace(String source, Map patternReplacements)
    
public  StringreplaceFirst(String source, String pattern, String replacement)
    
public  StringreplaceFirst(String source, String pattern, String replacement, int fromIndex)
    
public  StringreplaceLast(String source, String pattern, String replacement)
    
public  StringreplaceLast(String source, String pattern, String replacement, int fromIndex)
    
public  voidsetLocale(Locale locale)
    
public  voidsetLocale(String language, String country)
    
public  voidsetLocale(String language, String country, String variant)
    
public  StringshortOrdinal(Long n)
    
public  StringshortOrdinal(long n)
    
public  booleanstartsWith(String str, String prefix)
    
public  Stringsubstring(String str, int startIndex)
    
public  Stringsubstring(String str, int startIndex, int endIndex)
    
public  StringtoLowerCase(String str)
    
public  StringtoString(Object obj)
    
public  StringtoString(String str)
    
public  StringtoString(Date date)
    
public  StringtoString(Number n)
    
public  StringtoString(int n)
    
public  StringtoString(float n)
    
public  StringtoString(long n)
    
public  StringtoString(double n)
    
public  StringtoUpperCase(String str)
    
public  Stringtrim(String str)
    
public  StringtrimLeading(String str)
    
public  StringtrimTrailing(String str)
    


Constructor Detail
DefaultContext
public DefaultContext()(Code)




Method Detail
cardinal
public String cardinal(Long n)(Code)



cardinal
public String cardinal(long n)(Code)



currentDate
public Date currentDate()(Code)



dateFormat
public void dateFormat(String format)(Code)



dateFormat
public void dateFormat(String format, String timeZoneID)(Code)



endsWith
public boolean endsWith(String str, String suffix)(Code)



find
public int[] find(String str, String search)(Code)



find
public int[] find(String str, String search, int fromIndex)(Code)



findFirst
public int findFirst(String str, String search)(Code)



findFirst
public int findFirst(String str, String search, int fromIndex)(Code)



findLast
public int findLast(String str, String search)(Code)



findLast
public int findLast(String str, String search, int fromIndex)(Code)



getAvailableLocales
public Locale[] getAvailableLocales()(Code)



getAvailableTimeZones
public TimeZone[] getAvailableTimeZones()(Code)



getDateFormat
public String getDateFormat()(Code)



getDateFormatTimeZone
public String getDateFormatTimeZone()(Code)



getLocale
public java.util.Locale getLocale()(Code)



getNullFormat
public String getNullFormat()(Code)



getNumberFormat
public String getNumberFormat()(Code)



getNumberFormatInfinity
public String getNumberFormatInfinity()(Code)



getNumberFormatNaN
public String getNumberFormatNaN()(Code)



nullFormat
public void nullFormat(String format)(Code)



numberFormat
public void numberFormat(String format)(Code)



numberFormat
public void numberFormat(String format, String infinity, String NaN)(Code)



ordinal
public String ordinal(Long n)(Code)



ordinal
public String ordinal(long n)(Code)



print
abstract public void print(Object obj) throws Exception(Code)
Method that is the runtime receiver. Implementations should call one of the toString methods when converting this object to a string.

NOTE: This method should not be called directly within a template.
See Also:   com.go.tea.compiler.Compiler.getRuntimeReceiver




print
public void print(Date date) throws Exception(Code)



print
public void print(Number n) throws Exception(Code)



print
public void print(int n) throws Exception(Code)



print
public void print(float n) throws Exception(Code)



print
public void print(long n) throws Exception(Code)



print
public void print(double n) throws Exception(Code)



replace
public String replace(String source, String pattern, String replacement)(Code)



replace
public String replace(String source, String pattern, String replacement, int fromIndex)(Code)



replace
public String replace(String source, Map patternReplacements)(Code)



replaceFirst
public String replaceFirst(String source, String pattern, String replacement)(Code)



replaceFirst
public String replaceFirst(String source, String pattern, String replacement, int fromIndex)(Code)



replaceLast
public String replaceLast(String source, String pattern, String replacement)(Code)



replaceLast
public String replaceLast(String source, String pattern, String replacement, int fromIndex)(Code)



setLocale
public void setLocale(Locale locale)(Code)



setLocale
public void setLocale(String language, String country)(Code)



setLocale
public void setLocale(String language, String country, String variant)(Code)



shortOrdinal
public String shortOrdinal(Long n)(Code)



shortOrdinal
public String shortOrdinal(long n)(Code)



startsWith
public boolean startsWith(String str, String prefix)(Code)



substring
public String substring(String str, int startIndex)(Code)



substring
public String substring(String str, int startIndex, int endIndex)(Code)



toLowerCase
public String toLowerCase(String str)(Code)



toString
public String toString(Object obj)(Code)



toString
public String toString(String str)(Code)



toString
public String toString(Date date)(Code)



toString
public String toString(Number n)(Code)



toString
public String toString(int n)(Code)



toString
public String toString(float n)(Code)



toString
public String toString(long n)(Code)



toString
public String toString(double n)(Code)



toUpperCase
public String toUpperCase(String str)(Code)



trim
public String trim(String str)(Code)



trimLeading
public String trimLeading(String str)(Code)



trimTrailing
public String trimTrailing(String str)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.