summaryrefslogtreecommitdiff
path: root/BJC-Utils2
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-03-16 18:42:27 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-03-16 18:46:12 -0400
commit9c7a94a293a14816e3c4765fadea3856f9eb0590 (patch)
treee52157aae685cc6ec732175c3216bba34f2401cb /BJC-Utils2
parent0e6357de71344b79d7693e7c6357c46ee553557c (diff)
Implemented basic description holder
The intent is that components that have a hardcoded description or don't want to store it themselves use this bean.
Diffstat (limited to 'BJC-Utils2')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java b/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java
new file mode 100644
index 0000000..5923f26
--- /dev/null
+++ b/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java
@@ -0,0 +1,60 @@
+package bjc.utils.components;
+
+/**
+ * Generic implementation of a description for a component
+ * @author ben
+ *
+ */
+public class ComponentDescription implements IDescribedComponent {
+ /**
+ * The name of the component
+ */
+ private String name;
+ /**
+ * The author of the component
+ */
+ private String author;
+ /**
+ * The description of the component
+ */
+ private String description;
+ /**
+ * The version of the component
+ */
+ private int version;
+
+ /**
+ * Create a new component description
+ * @param name The name of the component
+ * @param author The author of the component
+ * @param description The description of the component
+ * @param version The version of the component
+ */
+ public ComponentDescription(String name, String author,
+ String description, int version) {
+ this.name = name;
+ this.author = author;
+ this.description = description;
+ this.version = version;
+ }
+
+ @Override
+ public String getName() {
+ return name;
+ }
+
+ @Override
+ public String getAuthor() {
+ return author;
+ }
+
+ @Override
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public int getVersion() {
+ return version;
+ }
+}