All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swordapp.client.Endpoints Maven / Gradle / Ivy

The newest version!
package org.swordapp.client;

import java.util.HashMap;
import java.util.Map;

public class Endpoints
{
	private String serviceDocument = null;
	private String collection = null;
	private String edit = null;
	private Map statements = new HashMap();

	public Endpoints() {}

	public Endpoints(String serviceDocument, String collection, String edit, Map statements)
	{
		this.serviceDocument = serviceDocument;
		this.collection = collection;
		this.edit = edit;
		this.statements = statements;
	}

	public String getServiceDocument()
	{
		return serviceDocument;
	}

	public void setServiceDocument(String serviceDocument)
	{
		this.serviceDocument = serviceDocument;
	}

	public String getCollection()
	{
		return collection;
	}

	public void setCollection(String collection)
	{
		this.collection = collection;
	}

	public String getEdit()
	{
		return edit;
	}

	public void setEdit(String edit)
	{
		this.edit = edit;
	}

	public Map getStatements()
	{
		if (statements.size() == 0)
		{
			return null;
		}
		return statements;
	}

	public void setStatements(Map statements)
	{
		this.statements = statements;
	}

	public void addStatement(String url, String type)
	{
		this.statements.put(url, type);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy