View Javadoc

1   /*
2    * Copyright 2012-2013 smartics, Kronseder & Reiner GmbH
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package test.de.smartics.properties.spi.config.proxy.examples;
17  
18  import org.hibernate.validator.constraints.NotBlank;
19  
20  import de.smartics.properties.api.core.annotations.PropertyMetaDataMethod;
21  import de.smartics.properties.api.core.annotations.PropertySet;
22  import de.smartics.properties.api.core.domain.PropertyDescriptor;
23  import de.smartics.properties.api.core.domain.PropertyKey;
24  
25  /**
26   *
27   */
28  @PropertySet("test.proxy.test")
29  public interface TestProperties
30  {
31    // ********************************* Fields *********************************
32  
33    // --- constants ------------------------------------------------------------
34  
35    // ****************************** Initializer *******************************
36  
37    // ****************************** Inner Classes *****************************
38  
39    // ********************************* Methods ********************************
40  
41    // --- get&set --------------------------------------------------------------
42  
43    /**
44     * The name property.
45     *
46     * @return the name property.
47     */
48    @NotBlank
49    String name();
50  
51    /**
52     * The name property.
53     *
54     * @return the name property.
55     */
56    @NotBlank
57    String getName();
58  
59    /**
60     * The aName property. Accessing this property must fail, as it is a property
61     * (see the return value), but it is annotated with the PropertyMetaData
62     * annotation.
63     *
64     * @return the aName property.
65     */
66    @PropertyMetaDataMethod("aName")
67    String aName();
68  
69    /**
70     * The otherName property.
71     *
72     * @return the otherName property.
73     */
74    @NotBlank
75    String otherName();
76  
77    /**
78     * The thirdName property.
79     *
80     * @return the thirdName property.
81     */
82    @NotBlank
83    String thirdName();
84  
85    /**
86     * The otherName property key. To check that the Annotation wins.
87     *
88     * @return the otherName property key, not the thirdName key, as the
89     *         annotation wins.
90     */
91    @PropertyMetaDataMethod("otherName")
92    PropertyKey thirdNamePropertyKey();
93  
94    /**
95     * The name property key.
96     *
97     * @return the name property key.
98     */
99    PropertyKey namePropertyKey();
100 
101   /**
102    * The name property key.
103    *
104    * @return the name property key..
105    */
106   PropertyKey getNamePropertyKey();
107 
108   /**
109    * The name property key.
110    *
111    * @return the name property key.
112    */
113   @PropertyMetaDataMethod("getName")
114   PropertyKey getNameKey();
115 
116   /**
117    * The name property key.
118    *
119    * @return the name property key.
120    */
121   @PropertyMetaDataMethod("name")
122   PropertyKey nameKey();
123 
124   /**
125    * The name property descriptor.
126    *
127    * @return the name property descriptor.
128    */
129   PropertyDescriptor namePropertyDescriptor();
130 
131   /**
132    * The name property descriptor.
133    *
134    * @return the name property descriptor.
135    */
136   PropertyDescriptor getNamePropertyDescriptor();
137 
138   /**
139    * The name property descriptor.
140    *
141    * @return the name property descriptor.
142    */
143   @PropertyMetaDataMethod("name")
144   PropertyDescriptor nameDescriptor();
145 
146   /**
147    * The name property descriptor.
148    *
149    * @return the name property descriptor.
150    */
151   @PropertyMetaDataMethod("getName")
152   PropertyDescriptor getNameDescriptor();
153 
154   // --- business -------------------------------------------------------------
155 
156   // --- object basics --------------------------------------------------------
157 
158 }