source: AnnotationManagerN4J/src/main/java/de/mpiwg/itgroup/annotations/Group.java @ 70:2b1e6df5e21a

Last change on this file since 70:2b1e6df5e21a was 70:2b1e6df5e21a, checked in by casties, 10 years ago

added lgpl_v3 license information.

File size: 1.4 KB
Line 
1/**
2 *
3 */
4package de.mpiwg.itgroup.annotations;
5
6/*
7 * #%L
8 * AnnotationManager
9 * %%
10 * Copyright (C) 2012 - 2014 MPIWG Berlin
11 * %%
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License as
14 * published by the Free Software Foundation, either version 3 of the
15 * License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 * GNU General Lesser Public License for more details.
21 *
22 * You should have received a copy of the GNU General Lesser Public
23 * License along with this program.  If not, see
24 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
25 * #L%
26 */
27
28/**
29 * @author casties
30 *
31 */
32public class Group extends Actor {
33
34    public Group(String id) {
35        super();
36        this.id = id;
37    }
38
39    public Group(String uri, String name) {
40        super();
41        this.uri = uri;
42        this.name = name;
43    }
44
45    public Group(String id, String uri, String name) {
46        super();
47        this.id = id;
48        this.uri = uri;
49        this.name = name;
50    }
51
52
53    @Override
54    public boolean isGroup() {
55        return true;
56    }
57
58    public String getIdString() {
59        if (id == null) {
60            id = getIdFromUri(uri, true);
61        }
62        return "group:" + id;
63    }
64
65}
Note: See TracBrowser for help on using the repository browser.