Class PathAwareVisitor

    • Constructor Detail

      • PathAwareVisitor

        public PathAwareVisitor()
    • Method Detail

      • getPath

        public final java.lang.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​(java.lang.String elementName,
                                    int elementIndex,
                                    Element element)
      • doVisitStart

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

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

        protected void doVisitEnd​(java.lang.String elementName,
                                  int elementIndex,
                                  Resource resource)
      • visit

        public final void visit​(java.lang.String elementName,
                                byte[] value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.math.BigDecimal value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.lang.Boolean value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.lang.Integer value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.time.LocalDate value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.time.LocalTime value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.lang.String value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.time.Year value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.time.YearMonth value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • visit

        public final void visit​(java.lang.String elementName,
                                java.time.ZonedDateTime value)
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               byte[] value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.math.BigDecimal value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.lang.Boolean value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.lang.Integer value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.time.LocalDate value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.time.LocalTime value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.lang.String value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.time.Year value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.time.YearMonth value)
      • doVisit

        protected void doVisit​(java.lang.String elementName,
                               java.time.ZonedDateTime value)