Package io.zeebe.msgpack.mapping
Class Mapping
- java.lang.Object
-
- io.zeebe.msgpack.mapping.Mapping
-
public final class Mapping extends Object
Represents a mapping to map from one message pack document to another. The mapping has a json path query for the source and a json path string which points to the target.This makes it possible to map a part of a message pack document into a new/existing document. With the mapping it is possible to replace/rename objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMapping.Type
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_ROOT_PATHstatic StringMAPPING_STRING
-
Constructor Summary
Constructors Constructor Description Mapping(JsonPathQuery source, JsonPathPointer targetPointer, Mapping.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonPathQuerygetSource()JsonPathPointergetTargetPointer()Mapping.TypegetType()booleanmapsToRootPath()StringtoString()
-
-
-
Field Detail
-
JSON_ROOT_PATH
public static final String JSON_ROOT_PATH
- See Also:
- Constant Field Values
-
MAPPING_STRING
public static final String MAPPING_STRING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Mapping
public Mapping(JsonPathQuery source, JsonPathPointer targetPointer, Mapping.Type type)
-
-
Method Detail
-
getSource
public JsonPathQuery getSource()
-
getTargetPointer
public JsonPathPointer getTargetPointer()
-
getType
public Mapping.Type getType()
-
mapsToRootPath
public boolean mapsToRootPath()
-
-