Package com.bazaarvoice.jolt.common
Class PathElementBuilder
java.lang.Object
com.bazaarvoice.jolt.common.PathElementBuilder
Static utility class that creates PathElement(s) given a string key from a json spec document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchablePathElement
buildMatchablePathElement
(String rawJsonKey) Create a path element and ensures it is a Matchable Path Elementstatic List
<PathElement> parseDotNotationRHS
(String dotNotation) Parse the dotNotation of the RHS.static List
<PathElement> static PathElement
parseSingleKeyLHS
(String origKey) Visible for Testing.
-
Constructor Details
-
PathElementBuilder
private PathElementBuilder()
-
-
Method Details
-
buildMatchablePathElement
Create a path element and ensures it is a Matchable Path Element -
parseSingleKeyLHS
Visible for Testing. Inspects the key in a particular order to determine the correct sublass of PathElement to create.- Parameters:
origKey
- String that should represent a single PathElement- Returns:
- a concrete implementation of PathElement
-
parseDotNotationRHS
Parse the dotNotation of the RHS. -
parseList
- Parameters:
refDotNotation
- the original dotNotation string used for error messages- Returns:
- List of PathElements based on the provided List
keys
-