Java Doc for CalendarGenerator.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » generation » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.generation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.generation.AbstractGenerator
   org.apache.cocoon.generation.ServiceableGenerator
      org.apache.cocoon.generation.CalendarGenerator

CalendarGenerator
public class CalendarGenerator extends ServiceableGenerator implements CacheableProcessingComponent(Code)

version:
   CVS $Id: CalendarGenerator.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
final protected static  StringCALENDAR_NODE_NAME
    
final protected static  StringDATE_ATTR_NAME
    
final protected static  StringDAY_NODE_NAME
    
final protected static  StringMONTH_ATTR_NAME
    
final protected static  StringNEXT_MONTH_ATTR_NAME
    
final protected static  StringNEXT_YEAR_ATTR_NAME
    
final protected static  StringNUMBER_ATTR_NAME
    
final protected static  StringPREFIX
     The namespace prefix for this namespace.
final protected static  StringPREV_MONTH_ATTR_NAME
    
final protected static  StringPREV_YEAR_ATTR_NAME
    
final protected static  StringURI
     The URI of the namespace of this generator.
final protected static  StringWEEKDAY_ATTR_NAME
    
final protected static  StringWEEK_NODE_NAME
    
final protected static  StringYEAR_ATTR_NAME
    
protected  AttributesImplattributes
     Convenience object, so we don't need to create an AttributesImpl for every element.
protected  ListcacheKeyParList
     The cache key needs to be generated for the configuration of this generator, so storing the parameters for generateKey().
protected  DateFormatdateFormatter
    
protected  Localelocale
    
protected  intmonth
    
protected  DateFormatmonthFormatter
    
final protected static  DecimalFormatmonthNumberFormatter
    
protected  booleanpadWeeks
    
protected  Stringweekdays
    
protected  intyear
    


Method Summary
protected  voidaddContent(Calendar date, Locale locale)
     Add content to a <day> element.
public  voidgenerate()
     Generate XML data.
public  SerializablegetKey()
    
public  SourceValiditygetValidity()
    
public  voidrecycle()
    
public  voidsetup(SourceResolver resolver, Map objectModel, String src, Parameters par)
     Set the request parameters.

Field Detail
CALENDAR_NODE_NAME
final protected static String CALENDAR_NODE_NAME(Code)
Node and attribute names



DATE_ATTR_NAME
final protected static String DATE_ATTR_NAME(Code)



DAY_NODE_NAME
final protected static String DAY_NODE_NAME(Code)



MONTH_ATTR_NAME
final protected static String MONTH_ATTR_NAME(Code)



NEXT_MONTH_ATTR_NAME
final protected static String NEXT_MONTH_ATTR_NAME(Code)



NEXT_YEAR_ATTR_NAME
final protected static String NEXT_YEAR_ATTR_NAME(Code)



NUMBER_ATTR_NAME
final protected static String NUMBER_ATTR_NAME(Code)



PREFIX
final protected static String PREFIX(Code)
The namespace prefix for this namespace.



PREV_MONTH_ATTR_NAME
final protected static String PREV_MONTH_ATTR_NAME(Code)



PREV_YEAR_ATTR_NAME
final protected static String PREV_YEAR_ATTR_NAME(Code)



URI
final protected static String URI(Code)
The URI of the namespace of this generator.



WEEKDAY_ATTR_NAME
final protected static String WEEKDAY_ATTR_NAME(Code)



WEEK_NODE_NAME
final protected static String WEEK_NODE_NAME(Code)



YEAR_ATTR_NAME
final protected static String YEAR_ATTR_NAME(Code)



attributes
protected AttributesImpl attributes(Code)
Convenience object, so we don't need to create an AttributesImpl for every element.



cacheKeyParList
protected List cacheKeyParList(Code)
The cache key needs to be generated for the configuration of this generator, so storing the parameters for generateKey().



dateFormatter
protected DateFormat dateFormatter(Code)
The format for dates



locale
protected Locale locale(Code)
The current locale



month
protected int month(Code)
The month to generate the calendar for



monthFormatter
protected DateFormat monthFormatter(Code)
The format for month names



monthNumberFormatter
final protected static DecimalFormat monthNumberFormatter(Code)
Formatter for month number



padWeeks
protected boolean padWeeks(Code)
Do we need to pad out the first and last weeks?



weekdays
protected String weekdays(Code)



year
protected int year(Code)
The year to generate the calendar for





Method Detail
addContent
protected void addContent(Calendar date, Locale locale) throws SAXException(Code)
Add content to a <day> element. This method is intended to be overridden by subclasses that want to add content to one or more days of the calendar.
Parameters:
  date - The date corresponding to the current element.
Parameters:
  locale - The current locale.
throws:
  SAXException - if an error occurs while outputting the document



generate
public void generate() throws SAXException, ProcessingException(Code)
Generate XML data.
throws:
  SAXException - if an error occurs while outputting the document



getKey
public Serializable getKey()(Code)



getValidity
public SourceValidity getValidity()(Code)



recycle
public void recycle()(Code)
Recycle resources
See Also:   org.apache.avalon.excalibur.pool.Recyclable.recycle



setup
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException(Code)
Set the request parameters. Must be called before the generate method.
Parameters:
  resolver - the SourceResolver object
Parameters:
  objectModel - a Map containing model object
Parameters:
  src - the source URI (ignored)
Parameters:
  par - configuration parameters



Fields inherited from org.apache.cocoon.generation.ServiceableGenerator
protected ServiceManager manager(Code)(Java Doc)

Methods inherited from org.apache.cocoon.generation.ServiceableGenerator
public void dispose()(Code)(Java Doc)
public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)

Fields inherited from org.apache.cocoon.generation.AbstractGenerator
protected Map objectModel(Code)(Java Doc)
protected Parameters parameters(Code)(Java Doc)
protected SourceResolver resolver(Code)(Java Doc)
protected String source(Code)(Java Doc)

Methods inherited from org.apache.cocoon.generation.AbstractGenerator
public void recycle()(Code)(Java Doc)
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException(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.