View Javadoc
1   /*
2    * This file is part of ***  M y C o R e  ***
3    * See http://www.mycore.de/ for details.
4    *
5    * MyCoRe is free software: you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation, either version 3 of the License, or
8    * (at your option) any later version.
9    *
10   * MyCoRe is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with MyCoRe.  If not, see <http://www.gnu.org/licenses/>.
17   */
18  
19  package org.mycore.iiif.presentation.model.attributes;
20  
21  import org.mycore.iiif.model.MCRIIIFBase;
22  
23  /**
24   * A link to a service that makes more functionality available for the resource, such as from an image to the base URI
25   * of an associated IIIF Image API service. The service resource should have additional information associated with it
26   * in order to allow the client to determine how to make appropriate use of it, such as a profile link to a service
27   * description. It may also have relevant information copied from the service itself. This duplication is permitted in
28   * order to increase the performance of rendering the object without necessitating additional HTTP requests.
29   *
30   * @see <a href="http://iiif.io/api/presentation/2.0/#linking-properties">IIIF-Documentation</a>
31   */
32  public class MCRIIIFService extends MCRIIIFBase {
33  
34      /**
35       * This can be a String or also @link {@link org.mycore.iiif.image.model.MCRIIIFImageProfile}
36       **/
37      public String profile;
38  
39      public MCRIIIFService(String id, String context) {
40          super(id, null, context);
41      }
42  
43      public String getProfile() {
44          return profile;
45      }
46  
47      public void setProfile(String profile) {
48          this.profile = profile;
49      }
50  
51  }