
org.swordapp.client.Endpoints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sword2-client Show documentation
Show all versions of sword2-client Show documentation
Client library for interacting with servers offering SWORDv2 endpoints.
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