Package com.adaptris.core.transform.json
Interface TransformationDriver
- All Known Implementing Classes:
JsonArrayTransformationDriver
,JsonlibTransformationDriver
,JsonObjectTransformationDriver
,JsonTransformationDriverImpl
,SafeJsonTransformationDriver
,SimpleJsonTransformationDriver
,XStreamTransformationDriver
public interface TransformationDriver
Transformation driver.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
transform
(AdaptrisMessage msg, TransformationDirection direction) Perform the transformation.default String
transform
(String input, TransformationDirection direction) Deprecated.
-
Method Details
-
transform
@Deprecated @Removal(version="5.1.0") default String transform(String input, TransformationDirection direction) throws ServiceException Deprecated.since 3.11.0 use thetransform(AdaptrisMessage, TransformationDirection)
instead.Perform transformation.- Parameters:
input
- The data to transform.direction
- The direction of the transformation.- Returns:
- The transformed data.
- Throws:
ServiceException
- Thrown if there is a problem with the transformation.- Implementation Note:
- The default implementation throws an
UnsupportedOperationException
.
-
transform
default void transform(AdaptrisMessage msg, TransformationDirection direction) throws ServiceException Perform the transformation.- Parameters:
msg
- The data to transform.direction
- The direction of the transformation.- Throws:
ServiceException
- Thrown if there is a problem with the transformation.- Implementation Note:
- The default implementation just delegates to
transform(String, TransformationDirection)
.
-
transform(AdaptrisMessage, TransformationDirection)
instead.