From 6dd7405206b2babfe491b59250f4d1d7f78e654b Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 18 Apr 2015 00:26:48 +0200 Subject: Week9 --- Week9/src/com/camilstaps/shop/Command.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Week9/src/com/camilstaps/shop/Command.java (limited to 'Week9/src/com/camilstaps/shop/Command.java') diff --git a/Week9/src/com/camilstaps/shop/Command.java b/Week9/src/com/camilstaps/shop/Command.java new file mode 100644 index 0000000..b4694c0 --- /dev/null +++ b/Week9/src/com/camilstaps/shop/Command.java @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2015 Camil Staps + * See the LICENSE file for copying permission. + */ + +package com.camilstaps.shop; + +/** + * A Command is something that can be executed by a normal visitor, a User or an Administrator. + * The current version only holds one string as command, but later versions could include arguments. + * @author Camil Staps, s4498062 + */ +public class Command { + + private final String command; + + public Command(String command) { + this.command = command; + } + + public String getCommand() { + return command; + } + +} -- cgit v1.2.3