public class FEELStringMarshaller extends Object implements org.kie.dmn.feel.marshaller.FEELMarshaller<String>
| Modifier and Type | Field and Description |
|---|---|
static FEELStringMarshaller |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
String |
marshall(Object value)
Marshalls the give FEEL value into a String.
|
Object |
unmarshall(org.kie.dmn.feel.lang.Type feelType,
String value)
Unmarshalls the given string into a FEEL value.
|
public static final FEELStringMarshaller INSTANCE
public String marshall(Object value)
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)
IMPORTANT: please note that it is only possible to unmarshall simple values, like strings and numbers. Complex values like lists and contexts don't have enough metadata marshalled in the string to enable them to be unmarshalled.
unmarshall in interface org.kie.dmn.feel.marshaller.FEELMarshaller<String>feelType - the expected type of the value to be unmarshalledvalue - the marshalled value to unmarshallUnsupportedOperationException - in case the type is a complex type,
i.e. RANGE, FUNCTION, CONTEXT, LIST or UNARY_TEST, the implementation
raises the exception.Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.