package eu.dnetlib.domain.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class RepositoryInterface implements Serializable{
	private static final long serialVersionUID = 8013272950607614479L;
	private String accessProtocol = null;
	private String address = null;
	private List<String> exposedSets = new ArrayList<String>();
	private List<String> exposedFormats = new ArrayList<String>();
	
	public String getAccessProtocol() {
		return accessProtocol;
	}
	public void setAccessProtocol(String accessProtocol) {
		this.accessProtocol = accessProtocol;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public List<String> getExposedFormats() {
		return exposedFormats;
	}
	public void setExposedFormats(List<String> exposedFormats) {
		this.exposedFormats = exposedFormats;
	}
	public List<String> getExposedSets() {
		return exposedSets;
	}
	public void setExposedSets(List<String> exposedSets) {
		this.exposedSets = exposedSets;
	}
	public String getSetsLastIndex(){
		return String.valueOf(this.getExposedSets().size() - 1);
	}
	public String getFormatsLastIndex(){
		return String.valueOf(this.getExposedFormats().size() - 1);
	}
	
}
