Project

General

Profile

1
package eu.dnetlib.domain.functionality.validator;
2

    
3

    
4
import java.util.HashMap;
5
import java.util.Map;
6

    
7
/**
8
 * Created by nikonas on 29/3/16.
9
 */
10
public class CustomProperties{
11

    
12
    private Map<String, String> properties;
13

    
14
    public CustomProperties() {
15
        this.properties = new HashMap<String, String>();
16
    }
17

    
18
    public Map<String, String> getProperties() {
19
        return properties;
20
    }
21

    
22
    public void setProperties(Map<String, String> properties) {
23
        this.properties = properties;
24
    }
25

    
26
    public void setProperty(String key, String value) {
27
        this.properties.put(key, value);
28
    }
29

    
30
    public String getProperty(String key) {
31
        return this.properties.get(key);
32
    }
33

    
34
    public Boolean containsProperty(String key) {
35
        return this.properties.containsKey(key);
36
    }
37

    
38
}
(1-1/6)