Class DetailDirectory.AnalysisVisitor

  • Enclosing class:
    DetailDirectory

    public class DetailDirectory.AnalysisVisitor
    extends ModelVisitor
    Model visitor for analyzing the structure of bindings and determining the appropriate schema components.
    • Field Detail

      • m_context

        private final ValidationContext m_context
        Validation context running this visitor.
    • Constructor Detail

      • AnalysisVisitor

        public AnalysisVisitor​(ValidationContext vctx)
        Constructor.
        Parameters:
        vctx - validation context that will run this visitor
    • Method Detail

      • visit

        public boolean visit​(MappingElement node)
        Visit mapping element. This just adds the mapping definition, if not already added.
        Overrides:
        visit in class ModelVisitor
        Parameters:
        node -
        Returns:
        expansion flag
      • visit

        public boolean visit​(StructureElementBase node)
        Visit structure or collection element. This just stops the expansion, since the content of mapping definitions is processed at the time the mapping is added.
        Overrides:
        visit in class ModelVisitor
        Parameters:
        node -
        Returns:
        false to block further expansion