+ /**
+ * A code usage object describes code or other resources that have been
+ * taken from other projects.
+ *
+ * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
+ */
+ private static class CodeUsage {
+
+ /** The name of the project. */
+ private final String name;
+
+ /** The URL of the project. */
+ private final String url;
+
+ /** The license of the project. */
+ private final String license;
+
+ /** The part that is used. */
+ private final String part;
+
+ /**
+ * Creates a new code usage object.
+ *
+ * @param name
+ * The name of the project
+ * @param url
+ * The URL of the project
+ * @param license
+ * The license of the used code
+ * @param part
+ * The part that is used
+ */
+ public CodeUsage(String name, String url, String license, String part) {
+ this.name = name;
+ this.url = url;
+ this.license = license;
+ this.part = part;
+ }
+
+ /**
+ * Returns the name of the project.
+ *
+ * @return The name of the project
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Returns the URL of the project.
+ *
+ * @return The URL of the project
+ */
+ public String getURL() {
+ return url;
+ }
+
+ /**
+ * Returns the license of the used part.
+ *
+ * @return The license of the used part
+ */
+ public String getLicense() {
+ return license;
+ }
+
+ /**
+ * Returns the used part.
+ *
+ * @return The used part
+ */
+ public String getPart() {
+ return part;
+ }
+
+ }
+