|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.data.sc.StringConverterSupport
Support class for the StringConverter interface.
Concrete implementations should extend this class, so that future interface compatibility can be protected.
For normal use, extend the DefaultStringConverter subclass of this class, as it
provides error handling support.
The Source Code of this Java class is available under a BSD-style license.
StringConverter,
DefaultStringConverter| Constructor Summary | |
StringConverterSupport()
|
|
| Method Summary | |
Object |
makeDefaultObject()
Helper implementation of StringConverter.makeDefaultObject(). |
protected abstract Object |
makeDefaultObjectImpl()
Implement this method to create a default object. |
String |
makeDefaultString()
Helper implementation of StringConverter.makeDefaultString(). |
protected abstract String |
makeDefaultStringImpl()
Implement this method to create a default String. |
Object |
makeObject(String pValue,
boolean pUseDefault)
Helper implementation of StringConverter.makeObject. |
protected abstract Object |
makeObjectImpl(String pValue,
boolean pUseDefault)
Implement this method to create a new object from a String. |
String |
makeString(Object pValue,
boolean pUseDefault)
Helper implementation of StringConverter.makeString. |
protected abstract String |
makeStringImpl(Object pValue,
boolean pUseDefault)
Implement this method to create a new String from a object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringConverterSupport()
| Method Detail |
public Object makeObject(String pValue,
boolean pUseDefault)
StringConverter.makeObject.
Subclasses should implement makeObjectImpl.
makeObject in interface StringConverterpValue - textual representation of the objectpUseDefault - use the default value in case of errorpublic Object makeDefaultObject()
StringConverter.makeDefaultObject().
Subclasses should implement makeDefaultObjectImpl().
makeDefaultObject in interface StringConverter
public String makeString(Object pValue,
boolean pUseDefault)
StringConverter.makeString.
Subclasses should implement makeStringImpl.
makeString in interface StringConverterpValue - object to convertpUseDefault - use the default value in case of errorpublic String makeDefaultString()
StringConverter.makeDefaultString().
Subclasses should implement makeDefaultStringImpl().
makeDefaultString in interface StringConverter
protected abstract Object makeObjectImpl(String pValue,
boolean pUseDefault)
throws Exception
String.
ExceptionmakeObject(java.lang.String, boolean),
StringConverter.makeObject(java.lang.String, boolean)
protected abstract Object makeDefaultObjectImpl()
throws Exception
ExceptionmakeDefaultObject(),
StringConverter.makeDefaultObject()
protected abstract String makeStringImpl(Object pValue,
boolean pUseDefault)
throws Exception
String from a object.
ExceptionmakeString(java.lang.Object, boolean),
StringConverter.makeString(java.lang.Object, boolean)
protected abstract String makeDefaultStringImpl()
throws Exception
String.
ExceptionmakeDefaultString(),
StringConverter.makeDefaultString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||