public class FEELCodeMarshaller extends Object implements org.kie.dmn.feel.marshaller.FEELMarshaller<String>
| Modifier and Type | Field and Description |
|---|---|
static FEELCodeMarshaller |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
String |
marshall(Object value)
Marshalls the given value into FEEL code that can be executed to
reconstruct the value.
|
Object |
unmarshall(org.kie.dmn.feel.lang.Type feelType,
String value)
Unmarshalls the string into a FEEL value by executing it.
|
public static final FEELCodeMarshaller INSTANCE
public String marshall(Object value)
* number 10 marshalls as: 10 * string foo marshalls as: "foo" * duration P1D marshalls as: duration( "P1D" ) * context { x : 10, y : foo } marshalls as: { x : 10, y : "foo" }
marshall in interface org.kie.dmn.feel.marshaller.FEELMarshaller<String>value - the FEEL value to be marshalledpublic Object unmarshall(org.kie.dmn.feel.lang.Type feelType, String value)
unmarshall in interface org.kie.dmn.feel.marshaller.FEELMarshaller<String>feelType - this parameter is ignored by this marshaller and can be set to nullvalue - the FEEL code to execute for unmarshallingCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.