flexjson.transformer
Class BooleanAsStringTransformer
java.lang.Object
flexjson.transformer.AbstractTransformer
flexjson.transformer.BooleanAsStringTransformer
- All Implemented Interfaces:
- Inline, Transformer
public class BooleanAsStringTransformer
- extends AbstractTransformer
A Boolean Transformer that writes out as String values in the JSON stream. This is
great for writing out things like "Yes", "No", "Y", "N", "T", "F", etc. It doesn't
handle numeric values. This was written as a separate Transformer so the performance
of BooleanTransformer
isn't impacted.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanAsStringTransformer
public BooleanAsStringTransformer(String truthValue,
String falseValue)
transform
public void transform(Object object)
Copyright © 2014. All Rights Reserved.