MetadataPropertyAccessor(String)   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 2
c 1
b 0
f 0
cc 1
rs 10
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
}