Additional javadoc.
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/itemcreation/customizer/AttributeData.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/itemcreation/customizer/AttributeData.java
index b950785..834674b 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/itemcreation/customizer/AttributeData.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/itemcreation/customizer/AttributeData.java
@@ -4,37 +4,69 @@
import java.util.Map;
/**
- * This class contains all the data that pertains to the customization
- * of a tag's attributes. For the current PoC, this involves a HashMap
- * where the String key is the name of the attribute and the associated
- * value is the user entered value for that attribute.
+ * Class containing all the data that pertains to the customization
+ * of a tag's attributes.
*
* @author prusev
+ * @author Debajit Adhikary
*
*/
public class AttributeData {
private Map<String, String> attrs = new HashMap<String, String>();
+
+ /**
+ * Returns a map of the attributes (Name-Value pairs)
+ *
+ * @return Map of attribute names and values
+ *
+ */
public Map<String, String> getAttributes()
{
return attrs;
}
+
+ /**
+ * Sets the attribute data to the map of attribute names and values
+ * provided.
+ *
+ * @param attribs
+ * Map of attribute names and values
+ *
+ */
public void setAttributes(Map<String, String> attribs)
{
attrs.clear();
attrs.putAll(attribs);
}
+
+ /**
+ * Adds an attribute.
+ *
+ * @param attr
+ * Attribute name
+ * @param userVal
+ * Attribute value
+ *
+ */
public void addAttribute(String attr, String userVal)
{
attrs.put(attr, userVal);
}
-
+
+ /**
+ * Returns the value for a given attribute name.
+ *
+ * @param attr
+ * Attribute name whose value is to be found
+ * @return Attribute value for the given attribute name
+ *
+ */
public String getValForAttrib(String attr)
{
return attrs.get(attr);
}
-
}