Project

General

Profile

1
package eu.dnetlib.data.information.oai.publisher;
2

    
3
import com.google.common.collect.Multimap;
4

    
5
/**
6
 * Instances of this class represent fields to be explicitely managed by the OAI Publisher, for example for indexing purposes.
7
 * 
8
 * @author alessia
9
 * 
10
 */
11
public class PublisherField {
12

    
13
	/**
14
	 * Name of the field.
15
	 */
16
	private String fieldName;
17
	/**
18
	 * True if the value of the field is a list (i.e. repeatable values). False otherwise.
19
	 **/
20
	private boolean repeatable;
21
	/**
22
	 * Information about where to take values for this field.
23
	 * <p>
24
	 * Keys are metadat format: name-layout-interpretation; values are xpaths.
25
	 * </p>
26
	 */
27
	private Multimap<String, String> sources;
28

    
29
	public String getFieldName() {
30
		return fieldName;
31
	}
32

    
33
	public void setFieldName(final String fieldName) {
34
		this.fieldName = fieldName;
35
	}
36

    
37
	public boolean isRepeatable() {
38
		return repeatable;
39
	}
40

    
41
	public void setRepeatable(final boolean repeatable) {
42
		this.repeatable = repeatable;
43
	}
44

    
45
	public Multimap<String, String> getSources() {
46
		return sources;
47
	}
48

    
49
	public void setSources(final Multimap<String, String> sources) {
50
		this.sources = sources;
51
	}
52

    
53
	public PublisherField() {
54
		super();
55
		// TODO Auto-generated constructor stub
56
	}
57

    
58
	public PublisherField(final String fieldName, final boolean repeatable, final Multimap<String, String> sources) {
59
		super();
60
		this.fieldName = fieldName;
61
		this.repeatable = repeatable;
62
		this.sources = sources;
63
	}
64

    
65
}
(6-6/6)