View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  
20  package org.apache.myfaces.tobago.apt.annotation;
21  
22  import java.lang.annotation.Retention;
23  import java.lang.annotation.RetentionPolicy;
24  import java.lang.annotation.Target;
25  import java.lang.annotation.ElementType;
26  
27  @Retention(value = RetentionPolicy.SOURCE)
28  @Target(value = ElementType.METHOD)
29  
30  public @interface UIComponentTagAttribute {
31  
32    /** type of attribute in the UIComponent */
33    String[] type() default {"java.lang.String"};
34  
35    String[] allowedValues() default { };
36  
37    /** allow faces expression language, e.g. #{bean.value}  */
38    DynamicExpression expression() default DynamicExpression.VALUE_EXPRESSION;
39  
40    String[] methodSignature() default { };
41  
42    String methodReturnType() default "void";
43  
44    String defaultValue() default "";
45  
46    String defaultCode() default "";
47  
48    String displayName() default "";
49  
50    /**
51     * Specifies whether this property should be visible
52     * in a property editor
53     */
54    boolean isHidden() default false;
55  
56    /**
57     * Specifies whether this property should be read-only
58     * in a property editor
59     */
60    boolean isReadOnly() default false;
61  
62    boolean isTransient() default false;
63  
64    boolean generate() default true;
65  }