public class FEELStringMarshaller extends Object implements 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(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 FEELMarshaller<String>
value
- the FEEL value to be marshalledpublic Object unmarshall(Type feelType, String value)
unmarshall
in interface 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–2018 JBoss by Red Hat. All rights reserved.