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.
-
IntArrayConverter()
-
-
convertFromString(String)
- Converts a string to an array of int.
-
convertToCode(Object)
- Use convertToCodeBlock instead.
-
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.
-
convertToString(Object)
- Converts and array of int to a string representation.
IntArrayConverter
public IntArrayConverter()
convertToString
public String convertToString(Object obj)
- Converts and array of int to a string representation.
- Overrides:
- convertToString in class Converter
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
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
convertToCode
public String convertToCode(Object obj)
- Use convertToCodeBlock instead.
- Overrides:
- convertToCode in class Converter
All Packages Class Hierarchy This Package Previous Next Index