org.jbpm.pvm.internal.type.converter
Class BooleanToStringConverter

java.lang.Object
  extended by org.jbpm.pvm.internal.type.converter.BooleanToStringConverter
All Implemented Interfaces:
java.io.Serializable, Converter

public class BooleanToStringConverter
extends java.lang.Object
implements Converter

See Also:
Serialized Form

Field Summary
static java.lang.String FALSE_TEXT
           
static java.lang.String TRUE_TEXT
           
 
Constructor Summary
BooleanToStringConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.Object o, ScopeInstanceImpl scopeInstance, Variable variable)
          converts a given object to its persistable format.
 java.lang.Object revert(java.lang.Object o, ScopeInstanceImpl scopeInstance, Variable variable)
          reverts a persisted object to its original formResourceName.
 boolean supports(java.lang.Object value, ScopeInstanceImpl scopeInstance, Variable variable)
          is true if this converter supports the given type, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE_TEXT

public static final java.lang.String TRUE_TEXT
See Also:
Constant Field Values

FALSE_TEXT

public static final java.lang.String FALSE_TEXT
See Also:
Constant Field Values
Constructor Detail

BooleanToStringConverter

public BooleanToStringConverter()
Method Detail

supports

public boolean supports(java.lang.Object value,
                        ScopeInstanceImpl scopeInstance,
                        Variable variable)
Description copied from interface: Converter
is true if this converter supports the given type, false otherwise.

Specified by:
supports in interface Converter

convert

public java.lang.Object convert(java.lang.Object o,
                                ScopeInstanceImpl scopeInstance,
                                Variable variable)
Description copied from interface: Converter
converts a given object to its persistable format.

Specified by:
convert in interface Converter

revert

public java.lang.Object revert(java.lang.Object o,
                               ScopeInstanceImpl scopeInstance,
                               Variable variable)
Description copied from interface: Converter
reverts a persisted object to its original formResourceName.

Specified by:
revert in interface Converter


Copyright © 2010 JBoss Community. All Rights Reserved.