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 String | STRUCTURED A property of a DataMapper - indicates heirachical/structured data-mapping support
(i.e. |
final static String | UNSTRUCTURED A property of a DataMapper - indicates no heirachical/structured data-mapping support
(i.e. |
Method Summary |
String | marshall(Object object) Serialises the given Object |
Object | unmarshall(String doc) Converts a serialised object back into an Object |
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)
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
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)