|
|||||||||||
| 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
com.ricebridge.data.sc.TypeArrayStringConverter
com.ricebridge.data.sc.IntegerArrayStringConverter
Handle int array textual representations.
| Field Summary | |
protected IntegerStringConverter |
iIntegerStringConverter
Use instance of single value converter for actual conversion work. |
| Fields inherited from class com.ricebridge.data.sc.TypeArrayStringConverter |
iEscChar, iSepChar, iUseNative |
| Fields inherited from class com.ricebridge.data.sc.TypeStringConverter |
iDefault |
| Constructor Summary | |
IntegerArrayStringConverter()
Create array converter with standard default object. |
|
IntegerArrayStringConverter(int pDefault)
Create array converter with specified default native value. |
|
IntegerArrayStringConverter(Integer pDefault)
Create array converter with specified default wrapper object. |
|
| Method Summary | |
protected String |
getTypeName()
Name of Java native type. |
protected Object |
makeArray(List pValues)
Create an array object from the list of values. |
protected ArrayList |
makeList(Object pValues)
Convert an object into a List, if possible. |
protected Object |
makeTypeObjectImpl(String pValue,
boolean pUseDefault)
Type specific subclasses handle parsing. |
| Methods inherited from class com.ricebridge.data.sc.TypeArrayStringConverter |
makeDefaultObjectImpl, makeDefaultStringImpl, makeObjectImpl, makeStringImpl, setDelimiters, setUseNative |
| Methods inherited from class com.ricebridge.data.sc.TypeStringConverter |
makeTypeStringImpl, setDefault |
| 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 IntegerStringConverter iIntegerStringConverter
| Constructor Detail |
public IntegerArrayStringConverter()
public IntegerArrayStringConverter(int pDefault)
pDefault - default native valuepublic IntegerArrayStringConverter(Integer pDefault)
pDefault - default wrapper value| Method Detail |
protected String getTypeName()
TypeStringConverter
getTypeName in class TypeStringConverter
protected Object makeTypeObjectImpl(String pValue,
boolean pUseDefault)
throws Exception
TypeStringConverter
makeTypeObjectImpl in class TypeStringConverterExceptionprotected Object makeArray(List pValues)
TypeArrayStringConverterIf TypeArrayStringConverter.iUseNative is true, then create a native array, else a wrapper object array.
makeArray in class TypeArrayStringConverterpValues - list of valuesprotected ArrayList makeList(Object pValues)
TypeArrayStringConverterIf TypeArrayStringConverter.iUseNative is true, then assume pValues is a native array, else a wrapper object array.
makeList in class TypeArrayStringConverterpValues - object that should be a list
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||