source: FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate/ResourceLayer.java @ 6988

Last change on this file since 6988 was 6979, checked in by peter.beinema@mpi.nl, 8 years ago

first upload

File size: 1.3 KB
Line 
1/*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
6package nl.mpi.annot.translate;
7
8/**
9 *
10 * @author petbei
11 */
12public class ResourceLayer {
13    //--- this object defines a  Resource / Layer combination.
14    // Not only should this combination be unique (cf ATResourceLayers, which checks this),
15    // but they uniquely define a formalism, which must be checked too.
16    // ATResourceLayers is used to make sure only unique combinations can occur.
17    // ATResourceLayers is the only object that is allowed to call the ATResourceLayer constructor.
18   
19    private String res;
20    private String lay;
21    private String form;
22    private String name;
23   
24    public ResourceLayer(String r, String l, String f) {
25        res = r;
26        lay = l;
27        form = f;
28        name = res + "/" + lay;
29    }
30   
31    String getName() {
32        return name;   
33    }
34   
35    String getResource() {
36        return res;
37    }
38   
39    String getLayer() {
40        return lay;   
41    }
42   
43    String getFormalism() {
44        return form;
45    }
46   
47    void display() {
48        System.out.println("    ResourceLayer " + name + " => formalism \"" + form + "\"");
49    }
50}
Note: See TracBrowser for help on using the repository browser.