1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package net.sf.beanform.prop;
16
17 import java.lang.annotation.Annotation;
18 import java.util.Collections;
19 import java.util.List;
20
21 /***
22 * A fake bean property that can be used to insert extra input fields into a BeanForm,
23 * allowing us to mix bean property fields with custom fields that do not correspond to
24 * bean properties.
25 *
26 * @author Daniel Gredler
27 */
28 public class PseudoProperty extends BeanProperty {
29
30 private static final long serialVersionUID = 9082276460854160562L;
31
32 public PseudoProperty( Class ownerClass, String name, String validators, String input ) {
33 super( ownerClass, name, validators, input );
34 }
35
36 @Override
37 @SuppressWarnings( "unchecked" )
38 public List<Annotation> getAnnotations() {
39 return Collections.EMPTY_LIST;
40 }
41
42 @Override
43 public boolean isReadable() {
44 return true;
45 }
46
47 @Override
48 public boolean isWriteable() {
49 return true;
50 }
51
52 @Override
53 public Class getType() {
54 return null;
55 }
56
57 @Override
58 public Object getValue() {
59 return null;
60 }
61
62 @Override
63 public void setValue( Object value ) {
64
65 }
66
67 }