|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.AbstractStringToObjectConverter
com.taco.text.MappedStringToObjectConverter
com.taco.swinger.text2gui.StringToLayerConverter
public class StringToLayerConverter
A converter from strings to layer identifiers. It accepts identifier strings as well as integer literals.
Field Summary | |
---|---|
static StringToLayerConverter |
instance
|
Fields inherited from class com.taco.text.MappedStringToObjectConverter |
---|
_defaultValue, _map, _NO_DEFAULT_VALUE |
Method Summary | |
---|---|
java.lang.Object |
toObject(java.lang.String s)
See if the string is mapped to a value. |
Methods inherited from class com.taco.text.AbstractStringToObjectConverter |
---|
map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StringToLayerConverter instance
Method Detail |
---|
public java.lang.Object toObject(java.lang.String s) throws java.text.ParseException
MappedStringToObjectConverter
MapUtilities.NULL_MAP_VALUE
, indicating that the string
is mapped to null
). If the string is not mapped, return
the default value if one was specified during construction. Otherwise,
throw a ParseException
.
toObject
in interface IStringToObjectConverter
toObject
in class MappedStringToObjectConverter
java.text.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |