es.webbeta.serializer.metadata.MetadataPropertyAccessor   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 14
c 1
b 0
f 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getGetter() 0 2 1
A MetadataPropertyAccessor(String) 0 2 1
A hasGetter() 0 2 1
1
package es.webbeta.serializer.metadata;
2
3
/**
4
 * It describes the customized getter method binded to a field.
5
 * <b>It requires that "access_type" config to be "public_method".</b>
6
 */
7
public class MetadataPropertyAccessor {
8
9
    private String getter;
10
11
    MetadataPropertyAccessor(String getter) {
12
        this.getter = getter;
13
    }
14
15
    public Boolean hasGetter() {
16
        return getter != null;
17
    }
18
19
    public String getGetter() {
20
        return getter;
21
    }
22
23
}