com.ricebridge.data.sc
Class IntegerStringConverter

java.lang.Object
  extended bycom.ricebridge.data.sc.StringConverterSupport
      extended bycom.ricebridge.data.sc.TypeStringConverter
          extended bycom.ricebridge.data.sc.IntegerStringConverter
All Implemented Interfaces:
StringConverter

public class IntegerStringConverter
extends TypeStringConverter

Handle integer textual representations.


Field Summary
protected static Integer sStandardDefault
          Default value object.
 
Fields inherited from class com.ricebridge.data.sc.TypeStringConverter
iDefault
 
Constructor Summary
IntegerStringConverter()
          Create a converter with standard default sStandardDefault.
IntegerStringConverter(int pDefault)
          Create a converter with specific native default.
IntegerStringConverter(Integer pDefault)
          Create a converter with specific wrapper object default.
 
Method Summary
protected  String getTypeName()
          Name of Java native type.
protected  Object makeTypeObjectImpl(String pValue, boolean pUseDefault)
          Type specific subclasses handle parsing.
 
Methods inherited from class com.ricebridge.data.sc.TypeStringConverter
makeDefaultObjectImpl, makeDefaultStringImpl, makeObjectImpl, makeStringImpl, 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

sStandardDefault

protected static Integer sStandardDefault
Default value object.

Constructor Detail

IntegerStringConverter

public IntegerStringConverter()
Create a converter with standard default sStandardDefault.


IntegerStringConverter

public IntegerStringConverter(int pDefault)
Create a converter with specific native default.

Parameters:
pDefault - default native value

IntegerStringConverter

public IntegerStringConverter(Integer pDefault)
Create a converter with specific wrapper object default.

Parameters:
pDefault - default wrapper object value
Method Detail

getTypeName

protected String getTypeName()
Description copied from class: TypeStringConverter
Name of Java native type.

Specified by:
getTypeName in class TypeStringConverter

makeTypeObjectImpl

protected Object makeTypeObjectImpl(String pValue,
                                    boolean pUseDefault)
                             throws Exception
Description copied from class: TypeStringConverter
Type specific subclasses handle parsing.

Specified by:
makeTypeObjectImpl in class TypeStringConverter
Throws:
Exception


Copyright © 2003-2006 Ricebridge