Jadex 0.96-beta1

jadex.runtime
Class JavaXMLContentCodec

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

public class JavaXMLContentCodec
extends Object
implements IContentCodec, Serializable

The XML codec based on the standard Java 1.4 XMLCodec.

See Also:
Serialized Form

Field Summary
static String JAVA_XML
          The java xml language.
 
Constructor Summary
JavaXMLContentCodec()
           
 
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

JAVA_XML

public static final String JAVA_XML
The java xml language.

See Also:
Constant Field Values
Constructor Detail

JavaXMLContentCodec

public JavaXMLContentCodec()
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.