view src/main/java/de/mpiwg/itgroup/annotations/Group.java @ 28:f4ed2ed33e5b

Restinterface zur Anzeige von Tags hinzugefuegt-
author dwinter
date Tue, 25 Sep 2012 09:32:56 +0200
parents 58357a4b86de
children 2b1e6df5e21a
line wrap: on
line source

/**
 * 
 */
package de.mpiwg.itgroup.annotations;

/**
 * @author casties
 *
 */
public class Group extends Actor {

    public Group(String id) {
        super();
        this.id = id;
    }

    public Group(String uri, String name) {
        super();
        this.uri = uri;
        this.name = name;
    }

    public Group(String id, String uri, String name) {
        super();
        this.id = id;
        this.uri = uri;
        this.name = name;
    }


    @Override
    public boolean isGroup() {
        return true;
    }

    public String getIdString() {
        if (id == null) {
            id = getIdFromUri(uri, true);
        }
        return "group:" + id;
    }

}