Class PathElementBuilder


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

      • PathElementBuilder

        private PathElementBuilder()
    • Method Detail

      • buildMatchablePathElement

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

        public static PathElement parseSingleKeyLHS​(java.lang.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 java.util.List<PathElement> parseDotNotationRHS​(java.lang.String dotNotation)
        Parse the dotNotation of the RHS.
      • parseList

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