*/
public class ReplyShell extends Reply implements Shell<Reply> {
+ /** The shell creator. */
+ public static final ShellCreator<Reply> creator = new ShellCreator<Reply>() {
+
+ @Override
+ public Shell<Reply> createShell(String id) {
+ return new ReplyShell().setId(UUID.fromString(id));
+ }
+ };
+
/** The Sone that posted this reply. */
private Sone sone;
*/
@Override
public boolean canUnshell() {
- return (sone != null) && (id != null) && (post != null) && (time != null) && (text != null);
+ return (sone != null) && (!(sone instanceof Shell<?>)) && (id != null) && (post != null) && (!(post instanceof Shell<?>)) && (time != null) && (text != null);
}
/**