aboutsummaryrefslogtreecommitdiff
path: root/Week9 Webshop/src/com/camilstaps/shop/Command.java
diff options
context:
space:
mode:
authorCamil Staps2015-04-18 13:44:44 +0200
committerCamil Staps2015-04-18 13:44:44 +0200
commit6a44b074f0169a1b0f9e92347af929c5e471746e (patch)
treeae5663fe7c69881bf4ecfedbef99c2505f8ec964 /Week9 Webshop/src/com/camilstaps/shop/Command.java
parentAdded copyright to docs (diff)
Reorganised projects
Diffstat (limited to 'Week9 Webshop/src/com/camilstaps/shop/Command.java')
-rw-r--r--Week9 Webshop/src/com/camilstaps/shop/Command.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/Week9 Webshop/src/com/camilstaps/shop/Command.java b/Week9 Webshop/src/com/camilstaps/shop/Command.java
new file mode 100644
index 0000000..b4694c0
--- /dev/null
+++ b/Week9 Webshop/src/com/camilstaps/shop/Command.java
@@ -0,0 +1,25 @@
+/**
+ * Copyright (c) 2015 Camil Staps <info@camilstaps.nl>
+ * 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;
+ }
+
+}