fipaos.parser.datamapping.script
Class AbstractScriptBinder

Direct Known Subclasses:
BATBinder, SHBinder

public abstract class AbstractScriptBinder

Abstract class to enable binding between a OS-specific scripting language & objects.

All properties (i.e. matching get/set pairs) in the object to be marshalled to/from
should be of type String

Property names are determined by capitalising the first letter of a variable name,
and setting the rest of the characters to lowercase

If the objects populated have the following methods defined, they will be used:



NOTE: The implementation of this class doesn't allow multiple lines which
set the same variable to be edited.


Method Summary
 (package private) final Stringmarshall(Object object)
          Serialises the given Object
 (package private) final Objectunmarshall(String doc, String filename)
          Converts a serialised object back into an Object

Method Detail

marshall

final String marshall(Object object)
throws fipaos.parser.ParserException
Serialises the given Object
Parameters:
object - - Object to be serialized.
Returns: String - Serialized String representation of the given object
Throws:
ParserException - Thrown if there is any problems serialising the object

unmarshall

final Object unmarshall(String doc, String filename)
throws fipaos.parser.ParserException
Converts a serialised object back into an Object
Parameters:
doc - Document containing the serialised object
Returns: The deserialised Object
Throws:
ParserException - Thrown if there is some problem deserialising the object

Association Links

to Class java.lang.String

to Class java.util.List

Properties of this DataMapper implementation