Jadex 0.96-beta1

jadex.runtime
Class NuggetsXMLContentCodec

java.lang.Object
  extended by jadex.runtime.NuggetsXMLContentCodec
All Implemented Interfaces:
IContentCodec, Serializable

public class NuggetsXMLContentCodec
extends Object
implements IContentCodec, Serializable

The XML codec based on the nuggest framework.

See Also:
Serialized Form

Field Summary
static String NUGGETS_XML
          The language identifier.
 
Constructor Summary
NuggetsXMLContentCodec()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUGGETS_XML

public static final String NUGGETS_XML
The language identifier.

See Also:
Constant Field Values
Constructor Detail

NuggetsXMLContentCodec

public NuggetsXMLContentCodec()
Method Detail

match

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

Specified by:
match in interface IContentCodec
Parameters:
props - The meta information.
Returns:
True, if it can be used.

encode

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

Specified by:
encode in interface IContentCodec
Parameters:
val - The value.
Returns:
The encoded object.

decode

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

Specified by:
decode in interface IContentCodec
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.