|
Last change
on this file was
6,
checked in by dsowen, 21 years ago
|
|
Split out the access stuff into accesslib.
New Creator interface off-loads object creation to user.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
|
File size:
585 bytes
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * Created on Aug 2, 2005 |
|---|
| 3 | * |
|---|
| 4 | * $Log$ |
|---|
| 5 | * Revision 1.2 2005/09/21 22:00:45 dsowen |
|---|
| 6 | * Split out the access stuff into accesslib. |
|---|
| 7 | * New Creator interface off-loads object creation to user. |
|---|
| 8 | * |
|---|
| 9 | * Revision 1.1 2005/08/03 00:35:29 dsowen |
|---|
| 10 | * Initial commit. |
|---|
| 11 | * |
|---|
| 12 | */ |
|---|
| 13 | package ws.fugue88.jpath; |
|---|
| 14 | |
|---|
| 15 | /** |
|---|
| 16 | * @author dsowen |
|---|
| 17 | */ |
|---|
| 18 | public class StringSelector extends Selector { |
|---|
| 19 | |
|---|
| 20 | public StringSelector(final String str) |
|---|
| 21 | { |
|---|
| 22 | _str = str; |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | public Object getKey() |
|---|
| 26 | { |
|---|
| 27 | return _str; |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | public String toString() |
|---|
| 31 | { |
|---|
| 32 | return "['" + PathParser.quote(_str) + "']"; |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | private final String _str; |
|---|
| 36 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.