Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.util.convertor
Class BooleanStringConvertor  view BooleanStringConvertor download BooleanStringConvertor.java

java.lang.Object
  extended byorg.scopemvc.util.convertor.NullStringConvertor
      extended byorg.scopemvc.util.convertor.BooleanStringConvertor
All Implemented Interfaces:
StringConvertor

public class BooleanStringConvertor
extends NullStringConvertor

String convertor for type java.util.Date.

Version:
$Revision: 1.2 $ $Date: 2002/01/12 09:35:41 $

Field Summary
private static java.lang.String FALSE
           
private static java.lang.String TRUE
           
 
Fields inherited from class org.scopemvc.util.convertor.NullStringConvertor
 
Constructor Summary
BooleanStringConvertor()
           
 
Method Summary
 java.lang.Object stringAsValue(java.lang.String inString)
          Parses String to produce corresponding object.
 java.lang.String valueAsString(java.lang.Object inValue)
          Formats object into String.
 
Methods inherited from class org.scopemvc.util.convertor.NullStringConvertor
getNullAsString, isNull, setNullAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE

private static final java.lang.String TRUE

FALSE

private static final java.lang.String FALSE
Constructor Detail

BooleanStringConvertor

public BooleanStringConvertor()
Method Detail

valueAsString

public java.lang.String valueAsString(java.lang.Object inValue)
                               throws java.lang.IllegalArgumentException
Description copied from interface: StringConvertor
Formats object into String. It never return a null. Implementing class can offer posibility to set string representation of null (such as "null" or ""), however default representation should be "". Slightly different null handling is performed in StringStringConvertor class.


stringAsValue

public java.lang.Object stringAsValue(java.lang.String inString)
                               throws java.lang.IllegalArgumentException
Description copied from interface: StringConvertor
Parses String to produce corresponding object. Empty or null string will be typically converted into null (unlike standard java.text formats which throws exceptions in such situations).