1 18 package org.apache.beehive.netui.compiler.grammar; 19 20 import org.apache.beehive.netui.compiler.AnnotationGrammar; 21 import org.apache.beehive.netui.compiler.RuntimeVersionChecker; 22 import org.apache.beehive.netui.compiler.Diagnostics; 23 import org.apache.beehive.netui.compiler.typesystem.env.AnnotationProcessorEnvironment; 24 25 public class ValidatableBeanGrammar 26 extends AnnotationGrammar 27 { 28 private static final String [][] REQUIRED_ATTRS = { { VALIDATABLE_PROPERTIES_ATTR }, { TYPE_ATTR } }; 29 30 public ValidatableBeanGrammar( AnnotationProcessorEnvironment env, Diagnostics diags, RuntimeVersionChecker rvc ) 31 { 32 super( env, diags, VERSION_9_0_STRING, rvc ); 33 34 addMemberArrayGrammar( VALIDATABLE_PROPERTIES_ATTR, new ValidatablePropertyGrammar( env, diags, rvc ) ); 35 } 37 38 public String [][] getRequiredAttrs() 39 { 40 return REQUIRED_ATTRS; 41 } 42 } 43 44 | Popular Tags |