Mercurial > hg > AnnotationManagerN4J
view src/main/java/de/mpiwg/itgroup/annotations/Group.java @ 64:c48435e7f312
fix npe when an annotation has no creator.
| author | casties |
|---|---|
| date | Mon, 03 Dec 2012 18:42:20 +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; } }
