com.ricebridge.data.sc
Class BooleanStringConverter

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

public class BooleanStringConverter
extends TypeStringConverter

Handle boolean textual representations.


Field Summary
protected static Boolean sStandardDefault
          Default value object.
 
Fields inherited from class com.ricebridge.data.sc.TypeStringConverter
iDefault
 
Constructor Summary
BooleanStringConverter()
          Create a converter with standard default sStandardDefault.
BooleanStringConverter(boolean pDefault)
          Create a converter with specific native default.
BooleanStringConverter(Boolean 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 Boolean sStandardDefault
Default value object.

Constructor Detail

BooleanStringConverter

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


BooleanStringConverter

public BooleanStringConverter(boolean pDefault)
Create a converter with specific native default.

Parameters:
pDefault - default native value

BooleanStringConverter

public BooleanStringConverter(Boolean 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