1 18 package org.apache.beehive.netui.compiler.grammar; 19 20 import org.apache.beehive.netui.compiler.RuntimeVersionChecker; 21 import org.apache.beehive.netui.compiler.AnnotationMemberType; 22 import org.apache.beehive.netui.compiler.FlowControllerInfo; 23 import org.apache.beehive.netui.compiler.Diagnostics; 24 import org.apache.beehive.netui.compiler.model.schema.struts11.StrutsConfigDocument; 25 import org.apache.beehive.netui.compiler.model.schema.validator11.FormValidationDocument; 26 import org.apache.beehive.netui.compiler.typesystem.env.AnnotationProcessorEnvironment; 27 28 29 public class ControllerGrammar 30 extends BaseFlowControllerGrammar 31 { 32 public ControllerGrammar( AnnotationProcessorEnvironment env, Diagnostics diags, RuntimeVersionChecker rvc, 33 FlowControllerInfo fcInfo ) 34 { 35 super( env, diags, null, rvc, fcInfo ); 36 37 addMemberType( LOGIN_REQUIRED_ATTR, new AnnotationMemberType( null, this ) ); 38 addMemberType( ROLES_ALLOWED_ATTR, new RolesAllowedType( this ) ); 39 addMemberType( READONLY_ATTR, new AnnotationMemberType( null, this ) ); 40 addMemberType( STRUTSMERGE_ATTR, new ValidXmlFileType( StrutsConfigDocument.type, null, this, fcInfo ) ); 41 addMemberType( VALIDATOR_VERSION_ATTR, new AnnotationMemberType( null, this ) ); 42 addMemberType( VALIDATOR_MERGE_ATTR, new ValidXmlFileType( FormValidationDocument.type, null, this, fcInfo ) ); 43 addMemberType( TILES_DEFINITIONS_CONFIGS_ATTR, new TilesDefinitionsConfigsType( null, this, fcInfo ) ); 44 addMemberType( MULTIPART_HANDLER_ATTR, new AnnotationMemberType( null, this ) ); 45 46 addMemberArrayGrammar( SHARED_FLOW_REFS_ATTR, new SharedFlowRefGrammar( env, diags, rvc ) ); 47 addMemberArrayGrammar( FORWARDS_ATTR, new ForwardGrammar( env, diags, null, rvc, fcInfo ) ); 48 addMemberArrayGrammar( CATCHES_ATTR, new CatchGrammar( env, diags, null, rvc, CONTROLLER_TAG_NAME, fcInfo ) ); 49 addMemberArrayGrammar( MESSAGE_BUNDLES_ATTR, new MessageBundleGrammar( env, diags, null, rvc, fcInfo ) ); 50 addMemberArrayGrammar( VALIDATABLE_BEANS_ATTR, new ValidatableBeanGrammar( env, diags, rvc ) ); 51 addMemberArrayGrammar( SIMPLE_ACTIONS_ATTR, new SimpleActionGrammar( env, diags, rvc, fcInfo ) ); 52 } 53 54 public String [][] getMutuallyExclusiveAttrs() 55 { 56 return null; 57 } 58 59 public String [][] getRequiredAttrs() 60 { 61 return null; 62 } 63 64 public String [][] getAttrDependencies() 65 { 66 return null; 67 } 68 } 69 | Popular Tags |