/*
 * Created on 2004-2-10
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package workflow.wfmc.xpdl;

import java.util.HashMap;
import java.util.Map;

import workflow.WorkflowObject;
import workflow.wfmc.xpdl.ext.ExtendedAttribute;

/**
 * @author zosatapo
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class XPDLObject extends WorkflowObject implements XPDLElement
{ 
  private Map extendedAttributes;
  
  /** 
   * Construct a new XPDLElement.
   */
  public XPDLObject()
  {
    this(null,null);
  }
    
  /** 
   * Construct a new XPDLElement.
   *
   * @param uuid_ The element ID
   * @param name The element name
   */
  public XPDLObject(String uuid_, String name)
  {
    this(uuid_,name,null);
  }
  
  /** 
   * Construct a new XPDLElement.
   *
   * @param uuid_       The element ID
   * @param name        The element name
   * @param description The element description
   */
   public XPDLObject(String uuid_, String name,String description)
	
   {
     super(uuid_,name,description);
     this.extendedAttributes = new HashMap();
   }
  
  /**  
   *  Get a map of extended attributes.
   *
   *  @return A map of extended attributes
   */
  public Map getExtendedAttributes()
  {
    return extendedAttributes;
  }
  
  /**  
   *  add ExtendedAttribute to  a map of extended attributes.
   *
   */
  public void addExtendedAttribute(ExtendedAttribute attribute)
 {
   this.extendedAttributes.put(attribute.getName(),attribute);
 }
}
