Interface BaseSpec

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean apply​(java.lang.String inputKey, Optional<java.lang.Object> inputOptional, WalkedPath walkedPath, java.util.Map<java.lang.String,​java.lang.Object> output, java.util.Map<java.lang.String,​java.lang.Object> context)
      This is the main recursive method of the Shiftr/Templatr/Cardinality parallel "spec" and "input" tree walk.
      MatchablePathElement getPathElement()
      Gimme the LHS path element
    • Method Detail

      • getPathElement

        MatchablePathElement getPathElement()
        Gimme the LHS path element
        Returns:
        LHS path element for comparison
      • apply

        boolean apply​(java.lang.String inputKey,
                      Optional<java.lang.Object> inputOptional,
                      WalkedPath walkedPath,
                      java.util.Map<java.lang.String,​java.lang.Object> output,
                      java.util.Map<java.lang.String,​java.lang.Object> context)
        This is the main recursive method of the Shiftr/Templatr/Cardinality parallel "spec" and "input" tree walk. It should return true if this Spec object was able to successfully apply itself given the inputKey and input object. In the context of the Shiftr parallel treewalk, if this method returns true, the assumption is that no other sibling Shiftr specs need to look at this particular input key.
        Returns:
        true if this this spec "handles" the inputkey such that no sibling specs need to see it