From 9c7a94a293a14816e3c4765fadea3856f9eb0590 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Wed, 16 Mar 2016 18:42:27 -0400 Subject: 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. --- .../bjc/utils/components/ComponentDescription.java | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java (limited to 'BJC-Utils2/src/main/java/bjc/utils/components') 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; + } +} -- cgit v1.2.3