package com.jxml.quick.qmap;
import java.util.*;

/**
 * Implemented by Objects held by a Map container which they are aware of.
 */
public interface QKeyed
{
	/**
	 * Returns the key used to locate this object.
	 */
	public Object key();

	/**
	 * Set the map which holds this object and add this object to the map.
	 * (Set to null when removed from a container.)
	 */
	public void attach(Map container);
}