/*
 * Created on Aug 2, 2005
 * 
 * $Log$
 * Revision 1.2  2005/09/21 22:00:45  dsowen
 * Split out the access stuff into accesslib.
 * New Creator interface off-loads object creation to user.
 *
 * Revision 1.1  2005/08/03 00:35:29  dsowen
 * Initial commit.
 *
 */
package ws.fugue88.jpath;

/**
 * @author dsowen
 */
public class StringSelector extends Selector {

	public StringSelector(final String str)
	{
		_str = str;
	}

	public Object getKey()
	{
		return _str;
	}

	public String toString()
	{
		return "['" + PathParser.quote(_str) + "']";
	}

	private final String _str;
}