view src/main/java/de/mpiwg/itgroup/annotations/Group.java @ 58:f5c0e6df7e88

made uri prefixes in store configurable.
author casties
date Tue, 20 Nov 2012 18:23:52 +0100
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;
    }

}