Class AddingVisitor<T extends Visitable>

    • Constructor Detail

      • AddingVisitor

        public AddingVisitor​(Visitable parent,
                             java.lang.String parentPath,
                             java.lang.String elementName,
                             Visitable value)
        Parameters:
        parent - the resource or element to add to
        parentPath - a "simple" FHIRPath path to the parent of the element being added
        elementName - the name of the element to add
        value - the element to add
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • visit

        public boolean visit​(java.lang.String elementName,
                             int index,
                             Visitable value)
        Description copied from class: DefaultVisitor
        Subclasses can override this method to provide a default action for all visit methods.
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
        Returns:
        whether to visit the children of this resource; returns the value of the visitChildren boolean by default