Class sunsoft.jws.visual.rt.type.AMConverter
All Packages Class Hierarchy This Package Previous Next Index
Class sunsoft.jws.visual.rt.type.AMConverter
java.lang.Object
|
+----sunsoft.jws.visual.rt.type.Converter
|
+----sunsoft.jws.visual.rt.type.AMConverter
- public class AMConverter
- extends Converter
This class can convert attribute managment trees to strings and
such strings back again to attribute management trees. The string
produced is a complete description of an application, and so it can
be used to save a tree to a file.
- See Also:
- AttributeManager
-
AMConverter()
-
-
convertFromString(double, String)
- Creates a new tree based upon the description string given.
-
convertFromString(String)
- Call the convertFromString function that takes a version number
instead.
-
convertToCode(Object)
- The conversion of shadow trees into code is performed within the
designer and not implemented here.
-
convertToString(Object, StringBuffer)
- Creates a string from the reference to the root or branch of the
attribute management tree given.
AMConverter
public AMConverter()
convertToString
public void convertToString(Object obj,
StringBuffer buf)
- Creates a string from the reference to the root or branch of the
attribute management tree given. Appends the string to the given
string buffer.
- Parameters:
- obj - attribute management tree reference
- buf - string buffer to append to
- Returns:
- string that describes the tree
- Overrides:
- convertToString in class Converter
convertFromString
public Object convertFromString(String s)
- Call the convertFromString function that takes a version number
instead. Tree conversion cannot take place without a version
number (for the string description.)
- Throws: Error
- when an attempt is made to call this method
- Overrides:
- convertFromString in class Converter
convertFromString
public Object convertFromString(double version,
String s)
- Creates a new tree based upon the description string given.
There should only be one object (as the root of the tree) in the
string. That root object may contain other objects, or children,
as it were.
- Parameters:
- version - the version number for the gui description string
- s - the string to convert to a tree @return new shadow tree
- Throws: ParseException
- when there is an error in the string
convertToCode
public String convertToCode(Object obj)
- The conversion of shadow trees into code is performed within the
designer and not implemented here. This method should never be
called.
- Throws: Error
- when an attempt is made to call this method
- Overrides:
- convertToCode in class Converter
All Packages Class Hierarchy This Package Previous Next Index