info.freelibrary.iiif.presentation.v3.services.OtherService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jiiify-presentation-v3 Show documentation
Show all versions of jiiify-presentation-v3 Show documentation
A Java Library for version 3 of the IIIF Presentation API
package info.freelibrary.iiif.presentation.v3.services;
import java.net.URI;
import info.freelibrary.iiif.presentation.v3.MediaType;
import info.freelibrary.iiif.presentation.v3.Service;
/**
* A service for which there isn't yet a Jiiify Presentation implementation.
*
* @param A type of service
*/
public interface OtherService> {
/**
* Sets the profile of this other service.
*
* @param aProfile The other service's profile
* @return The service
*/
T setProfile(Profile aProfile);
/**
* Sets the profile of this other service.
*
* @param aProfile The other service's profile in string form.
* @return The service
*/
T setProfile(String aProfile);
/**
* Sets the service type.
*
* @param aType A service type
* @return The service
*/
T setType(String aType);
/**
* Sets the format of this other service from its string form.
*
* @param aFormat The other service's format in string form
* @return The service
*/
T setFormat(String aFormat);
/**
* Sets the media type of this other service.
*
* @param aMediaType The other service's media type
* @return The service
*/
T setFormat(MediaType aMediaType);
/**
* Interface for {@link OtherService} profiles.
*/
interface Profile extends Service.Profile {
@Override
String string();
@Override
URI uri();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy