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

Class sunsoft.jws.visual.rt.type.DoubleArrayConverter

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

public class DoubleArrayConverter
extends Converter
Converts array of double to a string and back again. The string representation is a single line of comma-separated numbers.

Constructor Index

 o DoubleArrayConverter()

Method Index

 o convertFromString(String)
Converts a string to an array of double.
 o convertToCode(Object)
Use convertToCodeBlock instead.
 o convertToCodeBlock(String, Attribute, int, StringBuffer)
Converts an array of double (stored in an attribute) into a block of code that will create the array without using this converter at runtime.
 o convertToString(Object)
Converts and array of double to a string representation.

Constructors

 o DoubleArrayConverter
  public DoubleArrayConverter()

Methods

 o convertToString
  public String convertToString(Object obj)
Converts and array of double to a string representation.
Overrides:
convertToString in class Converter
 o convertFromString
  public Object convertFromString(String s)
Converts a string to an array of double.
Throws: ParseException
when one of the numbers is badly formatted
Overrides:
convertFromString in class Converter
 o convertToCodeBlock
  public void convertToCodeBlock(String amName,
                                 Attribute a,
                                 int indent,
                                 StringBuffer buf)
Converts an array of double (stored in an attribute) into a block of code that will create the array without using this converter at runtime.
Overrides:
convertToCodeBlock in class Converter
 o convertToCode
  public String convertToCode(Object obj)
Use convertToCodeBlock instead.
Overrides:
convertToCode in class Converter

All Packages  Class Hierarchy  This Package  Previous  Next  Index