org.jbpm.context.exe
Interface Converter<S,T>

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ContextConverter<S,T>
All Known Implementing Classes:
BooleanToStringConverter, BytesToByteArrayConverter, ByteToLongConverter, CharacterToStringConverter, DateToLongConverter, DoubleToStringConverter, FloatToDoubleConverter, FloatToStringConverter, IntegerToLongConverter, SerializableToByteArrayConverter, ShortToLongConverter

public interface Converter<S,T>
extends java.io.Serializable

converts plain objects to objects that are persistable via a subclass of VariableInstance.


Method Summary
 T convert(S o)
          converts a given object to its persistable format.
 S revert(T o)
          reverts a persisted object to its original form.
 boolean supports(java.lang.Object value)
          is true if this converter supports the given type, false otherwise.
 

Method Detail

supports

boolean supports(java.lang.Object value)
is true if this converter supports the given type, false otherwise.


convert

T convert(S o)
converts a given object to its persistable format.


revert

S revert(T o)
reverts a persisted object to its original form.



Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.