Class sunsoft.jws.visual.rt.type.BooleanConverter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.type.BooleanConverter

java.lang.Object
   |
   +----sunsoft.jws.visual.rt.type.Converter
           |
           +----sunsoft.jws.visual.rt.type.BooleanConverter

public class BooleanConverter
extends Converter
Converts Booleans to strings and back again.
See Also:
Boolean

Constructor Index

 o BooleanConverter()

Method Index

 o convertFromString(String)
Converts a string to a new instance of Boolean.
 o convertToCode(Object)
Returns a block of code representing a Boolean like the one given.
 o convertToString(Object)
Converts a Boolean to a string.

Constructors

 o BooleanConverter
  public BooleanConverter()

Methods

 o convertToString
  public String convertToString(Object obj)
Converts a Boolean to a string.
Parameters:
obj - an instance of Boolean
Returns:
its string equivalent, "true" or "false"
Overrides:
convertToString in class Converter
 o convertFromString
  public Object convertFromString(String s)
Converts a string to a new instance of Boolean.
Throws: ParseException
when a lower-cased version of the string is not "true" or "false"
Overrides:
convertFromString in class Converter
 o convertToCode
  public String convertToCode(Object obj)
Returns a block of code representing a Boolean like the one given.
Parameters:
obj - an instance of Boolean
Overrides:
convertToCode in class Converter

All Packages  Class Hierarchy  This Package  Previous  Next  Index