Jadex 0.96-beta1

jadex.runtime
Interface IContentCodec

All Known Implementing Classes:
JavaXMLContentCodec, NuggetsXMLContentCodec

public interface IContentCodec

The interface for content codecs.


Method Summary
 Object decode(String val)
          Decode data with the codec.
 String encode(Object val)
          Encode data with the codec.
 boolean match(Properties props)
          Test if the codec can be used with the provided meta information.
 

Method Detail

match

boolean match(Properties props)
Test if the codec can be used with the provided meta information.

Parameters:
props - The meta information.
Returns:
True, if it can be used.

encode

String encode(Object val)
Encode data with the codec.

Parameters:
val - The value.
Returns:
The encoded object.

decode

Object decode(String val)
Decode data with the codec.

Parameters:
val - The string value.
Returns:
The encoded object.

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.