fipaos.parser.datamapping
Interface DataMapper

All Known Implementing Classes:
XMLBinding

public interface DataMapper

This interface provides support for language-independent data binding.


Field Summary
 final static StringSTRUCTURED
          A property of a DataMapper - indicates heirachical/structured data-mapping support
(i.e.
 final static StringUNSTRUCTURED
          A property of a DataMapper - indicates no heirachical/structured data-mapping support
(i.e.

Method Summary
 Stringmarshall(Object object)
          Serialises the given Object
 Objectunmarshall(String doc)
          Converts a serialised object back into an Object

Field Detail

STRUCTURED

public final static String STRUCTURED
A property of a DataMapper - indicates heirachical/structured data-mapping support
(i.e. recursive decomposition of objects)

UNSTRUCTURED

public final static String UNSTRUCTURED
A property of a DataMapper - indicates no heirachical/structured data-mapping support
(i.e. no recursive decomposition of objects)
Method Detail

marshall

public 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

public Object unmarshall(String doc)
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

A property of a DataMapper - indicates heirachical/structured data-mapping support
(i.e. recursive decomposition of objects)

to Class java.lang.String

A property of a DataMapper - indicates no heirachical/structured data-mapping support
(i.e. no recursive decomposition of objects)