org.apache.beehive.netui.compiler
Class FlowControllerInfo

Object
  extended by SourceFileInfo
      extended by FlowControllerInfo

public class FlowControllerInfo
extends SourceFileInfo


Nested Class Summary
static class FlowControllerInfo.ActionInfo
           
 
Constructor Summary
FlowControllerInfo(ClassDeclaration jclass)
           
FlowControllerInfo(ClassDeclaration jclass, File webappRoot)
           
 
Method Summary
 void addAction(String actionName, String formBeanType)
           
 void addMessageBundle(String bundleName, String bundlePath)
           
 void addReferencedFile(File file)
           
 TypeMirror addReturnAction(String returnActionName, AnnotationMirror annotation, TypeDeclaration outerType)
          Add a return-action from an annotation.
 void addReturnAction(String returnActionName, String formBeanType)
           
 void enableNavigateToAction()
           
 void enableNavigateToPage()
           
 FlowControllerInfo.ActionInfo[] getActions()
           
 String getControllerClassName()
           
 String getFormBeanType(String actionName)
           
 MergedControllerAnnotation getMergedControllerAnnotation()
           
 Map<String,String> getMessageBundlesByName()
           
 List<File> getReferencedFiles()
          Get a list of referenced files (files that appear in Jpf.Forward paths).
 FlowControllerInfo.ActionInfo[] getReturnActions()
           
 Map<String,File> getSharedFlowFiles()
           
 Map<String,String> getSharedFlowTypeNames()
           
 Map<String,TypeDeclaration> getSharedFlowTypes()
           
 File getWebappRoot()
           
 boolean isNavigateToActionEnabled()
           
 boolean isNavigateToPageEnabled()
           
 boolean isNested()
           
 
Methods inherited from class SourceFileInfo
getClassName, getSourceFile
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowControllerInfo

public FlowControllerInfo(ClassDeclaration jclass)

FlowControllerInfo

public FlowControllerInfo(ClassDeclaration jclass,
                          File webappRoot)
Method Detail

getActions

public FlowControllerInfo.ActionInfo[] getActions()

isNested

public boolean isNested()

getReturnActions

public FlowControllerInfo.ActionInfo[] getReturnActions()

getFormBeanType

public String getFormBeanType(String actionName)

addAction

public void addAction(String actionName,
                      String formBeanType)

addReturnAction

public void addReturnAction(String returnActionName,
                            String formBeanType)

getReferencedFiles

public List<File> getReferencedFiles()
Get a list of referenced files (files that appear in Jpf.Forward paths).


addReferencedFile

public void addReferencedFile(File file)

getSharedFlowTypes

public Map<String,TypeDeclaration> getSharedFlowTypes()

getSharedFlowTypeNames

public Map<String,String> getSharedFlowTypeNames()

getMergedControllerAnnotation

public MergedControllerAnnotation getMergedControllerAnnotation()

getWebappRoot

public File getWebappRoot()

getMessageBundlesByName

public Map<String,String> getMessageBundlesByName()

addMessageBundle

public void addMessageBundle(String bundleName,
                             String bundlePath)

getControllerClassName

public String getControllerClassName()

getSharedFlowFiles

public Map<String,File> getSharedFlowFiles()

enableNavigateToAction

public void enableNavigateToAction()

enableNavigateToPage

public void enableNavigateToPage()

isNavigateToActionEnabled

public boolean isNavigateToActionEnabled()

isNavigateToPageEnabled

public boolean isNavigateToPageEnabled()

addReturnAction

public TypeMirror addReturnAction(String returnActionName,
                                  AnnotationMirror annotation,
                                  TypeDeclaration outerType)
Add a return-action from an annotation.

Returns:
the form bean type, or null if there is no form bean.