Class PathAwareVisitor

    • Constructor Detail

      • PathAwareVisitor

        public PathAwareVisitor()
    • Method Detail

      • getPath

        public final String getPath()
        Get the FHIRPath path of the Resource or Element currently being visited. This method is primarily for subclasses but can also be used externally to retrieve a path to the Resource or Element that was being visited when an Exception occurs.
        Returns:
        The path of the Resource or Element currently being visited, the path that was being visited when an exception was thrown, or null if there is no Resource or Element being visited.
      • reset

        public final void reset()
        Reset the state of the PathAwareVisitor. Invoke this method when visiting has failed and you want to clear the path in order to re-use the visitor.
      • doVisitStart

        protected void doVisitStart​(String elementName,
                                    int elementIndex,
                                    Element element)
      • doVisitStart

        protected void doVisitStart​(String elementName,
                                    int elementIndex,
                                    Resource resource)
      • doVisitEnd

        protected void doVisitEnd​(String elementName,
                                  int elementIndex,
                                  Element element)
      • doVisitEnd

        protected void doVisitEnd​(String elementName,
                                  int elementIndex,
                                  Resource resource)
      • doVisit

        protected void doVisit​(String elementName,
                               String value)