Java Doc for GenStrutsApp.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » compiler » genmodel » 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 » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.compiler.genmodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.beehive.netui.compiler.model.StrutsApp
   org.apache.beehive.netui.compiler.genmodel.GenStrutsApp

All known Subclasses:   org.apache.beehive.netui.compiler.genmodel.GenSharedFlowStrutsApp,
GenStrutsApp
public class GenStrutsApp extends StrutsApp implements JpfLanguageConstants(Code)



Constructor Summary
public  GenStrutsApp(File sourceFile, ClassDeclaration jclass, CoreAnnotationProcessorEnv env, FlowControllerInfo fcInfo, boolean checkOnly, Diagnostics diagnostics)
    

Method Summary
public  booleancanWrite()
     In some cases, canWrite() does not guarantee that a FileNotFoundException will not be thrown when trying to write to a file.
protected  StringgetContainingPackage()
    
 CoreAnnotationProcessorEnvgetEnv()
    
 ClassDeclarationgetFlowControllerClass()
    
 FlowControllerInfogetFlowControllerInfo()
    
protected  StringgetHeaderComment(File mergeFile)
    
 ListgetMatchingFormBeans(TypeDeclaration formType, Boolean usesPageFlowScopedFormBean)
     Returns a non-empty List of FormBeanModels that match the given form bean type.
public  FilegetMergeFile(String mergeFileName)
    
protected  StringgetMergeFileName()
    
 StringgetMessageResourcesFromFormType(TypeDeclaration formTypeDecl)
    
 StringgetOutputFileURI(String filePrefix)
    
public  FilegetStrutsConfigFile()
    
 StringgetStrutsConfigURI()
    
protected  StringgetValidationFilePrefix()
    
public  booleanisStale()
    
public  booleanisStale(File mergeFile)
     Tell whether the struts output file (struts-config-*.xml) is out of date, based on the file times of the source file and the (optional) struts-merge file.
protected  voidrecalculateStrutsConfigFile()
    
public  voidwriteToFile()
    


Constructor Detail
GenStrutsApp
public GenStrutsApp(File sourceFile, ClassDeclaration jclass, CoreAnnotationProcessorEnv env, FlowControllerInfo fcInfo, boolean checkOnly, Diagnostics diagnostics) throws IOException, FatalCompileTimeException(Code)




Method Detail
canWrite
public boolean canWrite()(Code)
In some cases, canWrite() does not guarantee that a FileNotFoundException will not be thrown when trying to write to a file. This method actually tries to overwrite the file as a test to see whether it's possible.



getContainingPackage
protected String getContainingPackage()(Code)



getEnv
CoreAnnotationProcessorEnv getEnv()(Code)



getFlowControllerClass
ClassDeclaration getFlowControllerClass()(Code)



getFlowControllerInfo
FlowControllerInfo getFlowControllerInfo()(Code)



getHeaderComment
protected String getHeaderComment(File mergeFile) throws FatalCompileTimeException(Code)



getMatchingFormBeans
List getMatchingFormBeans(TypeDeclaration formType, Boolean usesPageFlowScopedFormBean)(Code)
Returns a non-empty List of FormBeanModels that match the given form bean type. The usesPageFlowScopedFormBean parameter can be used to get the FormBeanModel for either a page flow scoped bean (true), not flow scoped (false), or both (null).
Parameters:
  formType - the form bean class type to match
Parameters:
  usesPageFlowScopedFormBean - flag to indicate that the bean ispage flow scoped. If null, return all FormBeanModels of the given typeregardless of being flow scoped or not. a non-empty List of FormBeanModels that match the given type



getMergeFile
public File getMergeFile(String mergeFileName) throws FatalCompileTimeException(Code)



getMergeFileName
protected String getMergeFileName()(Code)



getMessageResourcesFromFormType
String getMessageResourcesFromFormType(TypeDeclaration formTypeDecl)(Code)
the message-resources key for the form bean's message bundle



getOutputFileURI
String getOutputFileURI(String filePrefix)(Code)



getStrutsConfigFile
public File getStrutsConfigFile()(Code)



getStrutsConfigURI
String getStrutsConfigURI()(Code)



getValidationFilePrefix
protected String getValidationFilePrefix()(Code)



isStale
public boolean isStale() throws FatalCompileTimeException(Code)



isStale
public boolean isStale(File mergeFile)(Code)
Tell whether the struts output file (struts-config-*.xml) is out of date, based on the file times of the source file and the (optional) struts-merge file.



recalculateStrutsConfigFile
protected void recalculateStrutsConfigFile() throws IOException, FatalCompileTimeException(Code)



writeToFile
public void writeToFile() throws FileNotFoundException, IOException, XmlModelWriterException, FatalCompileTimeException(Code)



Fields inherited from org.apache.beehive.netui.compiler.model.StrutsApp
final protected static String DUPLICATE_ACTION_COMMENT(Code)(Java Doc)
final protected static String NETUI_VALIDATOR_RULES_URI(Code)(Java Doc)
final protected static String PAGEFLOW_CONTROLLER_CONFIG_CLASSNAME(Code)(Java Doc)
final protected static String PAGEFLOW_REQUESTPROCESSOR_CLASSNAME(Code)(Java Doc)
final protected static String STRUTSCONFIG_OUTPUT_DIR(Code)(Java Doc)
final protected static String STRUTS_CONFIG_EXTENSION(Code)(Java Doc)
final protected static String STRUTS_CONFIG_PREFIX(Code)(Java Doc)
final public static char STRUTS_CONFIG_SEPARATOR(Code)(Java Doc)
final protected static String STRUTS_VALIDATOR_RULES_URI(Code)(Java Doc)
final protected static String TILES_DEFINITIONS_CONFIG_PROPERTY(Code)(Java Doc)
final protected static String TILES_MODULE_AWARE_PROPERTY(Code)(Java Doc)
final protected static String TILES_PLUG_IN_CLASSNAME(Code)(Java Doc)
final protected static String VALIDATOR_PATHNAMES_PROPERTY(Code)(Java Doc)
final protected static String VALIDATOR_PLUG_IN_CLASSNAME(Code)(Java Doc)
final protected static String WEBINF_DIR_NAME(Code)(Java Doc)

Methods inherited from org.apache.beehive.netui.compiler.model.StrutsApp
public void addActionMapping(ActionModel mapping)(Code)(Java Doc)
public void addException(ExceptionModel c)(Code)(Java Doc)
public void addFormBean(FormBeanModel newFormBean)(Code)(Java Doc)
public void addMessageResources(MessageResourcesModel mr)(Code)(Java Doc)
protected void addSetProperty(XmlModelWriter xw, Element element, String propName, String propValue)(Code)(Java Doc)
public void deleteFormBean(FormBeanModel formBean)(Code)(Java Doc)
public String getActionPath()(Code)(Java Doc)
public String getBeanType(ActionModel actionMapping)(Code)(Java Doc)
public MessageResourcesModel getDefaultMessageResources()(Code)(Java Doc)
protected List getExceptionCatchesList()(Code)(Java Doc)
public FormBeanModel getFormBean(String formBeanName)(Code)(Java Doc)
public FormBeanModel[] getFormBeans()(Code)(Java Doc)
public List getFormBeansAsList()(Code)(Java Doc)
public List getFormBeansByActualType(String actualTypeName, Boolean usesPageFlowScopedBean)(Code)(Java Doc)
protected Map getFormBeansMap()(Code)(Java Doc)
public String getFormNameForType(String formType, boolean isPageFlowScoped)(Code)(Java Doc)
protected String getFormQualifiedActionPath(ActionModel action)(Code)(Java Doc)
protected String getHeaderComment(File mergeFile) throws FatalCompileTimeException(Code)(Java Doc)
protected String getMemFileSize()(Code)(Java Doc)
protected List getMessageResourcesList()(Code)(Java Doc)
public String getMultipartHandlerClassName()(Code)(Java Doc)
public static String getOutputFileURI(String filePrefix, String containingPackage, boolean isSharedFlow)(Code)(Java Doc)
protected List getSortedActionMappings()(Code)(Java Doc)
protected static String getStrutsConfigURI(String containingPackage, boolean isSharedFlow)(Code)(Java Doc)
public boolean isAbstract()(Code)(Java Doc)
public boolean isReturnToActionDisabled()(Code)(Java Doc)
public boolean isReturnToPageDisabled()(Code)(Java Doc)
protected boolean isSharedFlow()(Code)(Java Doc)
protected static String makeFullyQualifiedBeanName(String formType)(Code)(Java Doc)
public void setAbstract(boolean anAbstract)(Code)(Java Doc)
public void setAdditionalValidatorConfigs(List additionalValidatorConfigs)(Code)(Java Doc)
public void setLongLivedPageFlow(boolean longLivedPageFlow)(Code)(Java Doc)
protected void setMemFileSize(String memFileSize)(Code)(Java Doc)
protected void setMultipartHandlerClassName(String multipartHandlerClassName)(Code)(Java Doc)
public void setNestedPageFlow(boolean nestedPageFlow)(Code)(Java Doc)
public void setReturnToActionDisabled(boolean disabled)(Code)(Java Doc)
public void setReturnToPageDisabled(boolean disabled)(Code)(Java Doc)
protected void setSharedFlow(boolean sharedFlow)(Code)(Java Doc)
protected void setSharedFlows(Map sharedFlows)(Code)(Java Doc)
public void setTilesDefinitionsConfigs(List tilesDefinitionsConfigs)(Code)(Java Doc)
public void setValidationModel(ValidationModel validationModel)(Code)(Java Doc)
protected void writeControllerElement(XmlModelWriter xw, Element element)(Code)(Java Doc)
protected void writeTilesInit(XmlModelWriter xw, Element element)(Code)(Java Doc)
protected void writeToElement(XmlModelWriter xw, Element element)(Code)(Java Doc)
protected void writeValidatorInit(XmlModelWriter xw, Element element)(Code)(Java Doc)
public void writeXml(PrintWriter writer, File mergeFile) throws IOException, FatalCompileTimeException, XmlModelWriterException(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.