From f599b5ca1e5dff86df0c9f2f6cf3db77b1311d1b Mon Sep 17 00:00:00 2001 From: jedk1 Date: Wed, 24 Feb 2016 00:46:30 +0000 Subject: [PATCH] Change Element and SubElement to public --- src/com/projectkorra/projectkorra/Element.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/com/projectkorra/projectkorra/Element.java b/src/com/projectkorra/projectkorra/Element.java index c7c92fc5..db3e9157 100644 --- a/src/com/projectkorra/projectkorra/Element.java +++ b/src/com/projectkorra/projectkorra/Element.java @@ -32,7 +32,12 @@ public class Element { private String name; - protected Element(String name) { + /** + * To be used when creating a new Element. + * Do not use for comparing Elements. + * @param name Name of the new Element. + */ + public Element(String name) { this.name = name; ALL_ELEMENTS.put(name.toLowerCase(), this); } @@ -73,7 +78,12 @@ public class Element { private Element parentElement; - private SubElement(String name, Element parentElement) { + /** + * To be used when creating a new SubElement. + * Do not use for comparing SubElements. + * @param name Name of the new SubElement. + */ + public SubElement(String name, Element parentElement) { super(name); this.parentElement = parentElement; }