Class PathElementBuilder

java.lang.Object
com.bazaarvoice.jolt.common.PathElementBuilder

public class PathElementBuilder extends Object
Static utility class that creates PathElement(s) given a string key from a json spec document
  • Constructor Details

    • PathElementBuilder

      private PathElementBuilder()
  • Method Details

    • buildMatchablePathElement

      public static MatchablePathElement buildMatchablePathElement(String rawJsonKey)
      Create a path element and ensures it is a Matchable Path Element
    • parseSingleKeyLHS

      public static PathElement parseSingleKeyLHS(String origKey)
      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

      public static List<PathElement> parseDotNotationRHS(String dotNotation)
      Parse the dotNotation of the RHS.
    • parseList

      public static List<PathElement> parseList(List<String> keys, String refDotNotation)
      Parameters:
      refDotNotation - the original dotNotation string used for error messages
      Returns:
      List of PathElements based on the provided List keys