Class sunsoft.jws.visual.rt.type.AttributeListConverter
All Packages Class Hierarchy This Package Previous Next Index
Class sunsoft.jws.visual.rt.type.AttributeListConverter
java.lang.Object
|
+----sunsoft.jws.visual.rt.type.Converter
|
+----sunsoft.jws.visual.rt.type.AttributeListConverter
- public class AttributeListConverter
- extends Converter
The class converts AttributeLists to strings and back again.
- See Also:
- AttributeList
-
AttributeListConverter()
-
-
convertFromString(double, AttributeManager, String)
- Converts a string to an AttributeList.
-
convertFromString(String)
- Call convertFromString that takes more arguments instead.
-
convertToCodeBlock(String, AttributeList, int, StringBuffer)
- Converts an AttributeManager's AttributeList to code.
-
convertToString(Object, StringBuffer)
- Converts an AttributeList to a string.
AttributeListConverter
public AttributeListConverter()
convertToString
public void convertToString(Object obj,
StringBuffer buf)
- Converts an AttributeList to a string.
- Parameters:
- obj - AttributeList to convert
- buf - buffer to which to add the string
- Overrides:
- convertToString in class Converter
convertFromString
public Object convertFromString(String s)
- Call convertFromString that takes more arguments instead.
- Throws: Error
- when called
- Overrides:
- convertFromString in class Converter
convertFromString
public String convertFromString(double version,
AttributeManager mgr,
String s)
- Converts a string to an AttributeList.
- Parameters:
- version - description file version
- mgr - AttributeManager from which the attribute list came
- s - string to convert
- Returns:
- string representation of AttributeList
- Throws: ParseError
- when there is a problem with the string
convertToCodeBlock
public void convertToCodeBlock(String amName,
AttributeList list,
int indent,
StringBuffer buf)
- Converts an AttributeManager's AttributeList to code.
Skips the name attribute because it is generated separately in GenCode.
This is done because during initialization for the generated root, the
name must be set before add is called. All the other attributes
must be set after add is called.
- Parameters:
- amName - name of the AttributeManager
- list - the list to convert
- indent - number of spaces to indent on each line
- buf - buffer to which to add the code
All Packages Class Hierarchy This Package Previous Next Index