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

Class sunsoft.jws.visual.rt.type.IntArrayConverter

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

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

Constructor Index

 o IntArrayConverter()

Method Index

 o convertFromString(String)
Converts a string to an array of int.
 o convertToCode(Object)
Use convertToCodeBlock instead.
 o convertToCodeBlock(String, Attribute, int, StringBuffer)
Converts an array of int (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 int to a string representation.

Constructors

 o IntArrayConverter
  public IntArrayConverter()

Methods

 o convertToString
  public String convertToString(Object obj)
Converts and array of int to a string representation.
Overrides:
convertToString in class Converter
 o convertFromString
  public Object convertFromString(String s)
Converts a string to an array of int.
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 int (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