View Javadoc
1   package org.pojomatic.internal;
2   
3   import java.lang.reflect.Field;
4   
5   public class PropertyField extends AbstractPropertyElement<Field> {
6     public PropertyField(Field propertyField, String name) {
7       super(propertyField, name.length() == 0 ? propertyField.getName() : name);
8     }
9   
10    @Override
11    public String getElementName() {
12      return element.getName();
13    }
14  
15    @Override
16    public String getType() {
17      return "field";
18    }
19  
20    @Override
21    public Class<?> getPropertyType() {
22      return element.getType();
23    }
24  }