1 package org.eclipse.jst.pagedesigner.itemcreation.customizer;
\r
3 import java.util.HashMap;
\r
4 import java.util.Map;
\r
7 * Class containing all the data that pertains to the customization
\r
8 * of a tag's attributes.
\r
11 * @author Debajit Adhikary
\r
14 public class AttributeData {
\r
16 private Map<String, String> attrs = new HashMap<String, String>();
\r
20 * Returns a map of the attributes (Name-Value pairs)
\r
22 * @return Map of attribute names and values
\r
25 public Map<String, String> getAttributes()
\r
32 * Sets the attribute data to the map of attribute names and values
\r
36 * Map of attribute names and values
\r
39 public void setAttributes(Map<String, String> attribs)
\r
42 attrs.putAll(attribs);
\r
47 * Adds an attribute.
\r
55 public void addAttribute(String attr, String userVal)
\r
57 attrs.put(attr, userVal);
\r
61 * Returns the value for a given attribute name.
\r
64 * Attribute name whose value is to be found
\r
65 * @return Attribute value for the given attribute name
\r
68 public String getValForAttrib(String attr)
\r
70 return attrs.get(attr);
\r