|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.data.sc.StringConverterSupport
com.ricebridge.data.sc.TypeStringConverter
Utility class for handling conversion of native Java types.
| Field Summary | |
protected Object |
iDefault
Default object instance. |
| Constructor Summary | |
TypeStringConverter()
|
|
| Method Summary | |
protected abstract String |
getTypeName()
Name of Java native type. |
protected Object |
makeDefaultObjectImpl()
Just return the default object. |
protected String |
makeDefaultStringImpl()
Return the result of calling toString on the default object. |
protected Object |
makeObjectImpl(String pValue,
boolean pUseDefault)
Pass actual object creation to makeTypeObjectImpl method. |
protected String |
makeStringImpl(Object pValue,
boolean pUseDefault)
Pass actual text creation to makeTypeStringImpl method. |
protected abstract Object |
makeTypeObjectImpl(String pValue,
boolean pUseDefault)
Type specific subclasses handle parsing. |
protected String |
makeTypeStringImpl(Object pValue,
boolean pUseDefault)
Call the toString method on the type object. |
void |
setDefault(Object pObject)
Set the default object instance. |
| Methods inherited from class com.ricebridge.data.sc.StringConverterSupport |
makeDefaultObject, makeDefaultString, makeObject, makeString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Object iDefault
| Constructor Detail |
public TypeStringConverter()
| Method Detail |
public void setDefault(Object pObject)
pObject - default object
protected Object makeObjectImpl(String pValue,
boolean pUseDefault)
throws Exception
makeTypeObjectImpl method.
makeObjectImpl in class StringConverterSupportExceptionStringConverterSupport.makeObject(java.lang.String, boolean),
StringConverter.makeObject(java.lang.String, boolean)protected Object makeDefaultObjectImpl()
makeDefaultObjectImpl in class StringConverterSupportStringConverterSupport.makeDefaultObject(),
StringConverter.makeDefaultObject()
protected String makeStringImpl(Object pValue,
boolean pUseDefault)
throws Exception
makeTypeStringImpl method.
makeStringImpl in class StringConverterSupportExceptionStringConverterSupport.makeString(java.lang.Object, boolean),
StringConverter.makeString(java.lang.Object, boolean)protected String makeDefaultStringImpl()
toString on the default object.
makeDefaultStringImpl in class StringConverterSupportStringConverterSupport.makeDefaultString(),
StringConverter.makeDefaultString()protected abstract String getTypeName()
protected abstract Object makeTypeObjectImpl(String pValue,
boolean pUseDefault)
throws Exception
Exception
protected String makeTypeStringImpl(Object pValue,
boolean pUseDefault)
toString method on the type object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||