Class FlatteningStructuringVisitor

    • Method Detail

      • visitGroup

        public Void visitGroup​(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item,
                               Void childResult,
                               IIndexer index)
        Description copied from interface: ICatalogVisitor
        Called when visiting a group.

        Can be overridden by classes extending this interface to support processing of the visited object.

        Parameters:
        item - the Metapath item for the group
        childResult - the result of evaluating the group's children
        index - the calling context information
        Returns:
        a meaningful result of the given type
      • visitControl

        public Void visitControl​(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item,
                                 Void childResult,
                                 IIndexer index)
        Description copied from interface: ICatalogVisitor
        Called when visiting a control.

        Can be overridden by classes extending this interface to support processing of the visited object.

        Parameters:
        item - the Metapath item for the control
        childResult - the result of evaluating the control's children
        index - the calling context information
        Returns:
        a meaningful result of the given type
      • visitParameter

        protected Void visitParameter​(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item,
                                      gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem catalogOrGroupOrControl,
                                      IIndexer index)
        Description copied from class: AbstractCatalogEntityVisitor
        Called when visiting a parameter.

        Can be overridden by classes extending this interface to support processing of the visited object.

        Overrides:
        visitParameter in class AbstractCatalogEntityVisitor<IIndexer,​Void>
        Parameters:
        item - the Metapath item for the parameter
        catalogOrGroupOrControl - the parameter's parent Metapath item
        index - the calling context information
        Returns:
        a meaningful result of the given type
      • visitRole

        protected void visitRole​(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item,
                                 gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem metadataItem,
                                 IIndexer index)
        Description copied from class: AbstractCatalogEntityVisitor
        Called when visiting a role in the "metadata" section of an OSCAL document.

        Can be overridden by classes extending this interface to support processing of the visited object.

        Overrides:
        visitRole in class AbstractCatalogEntityVisitor<IIndexer,​Void>
        Parameters:
        item - the role Metaschema node item which is a child of the "metadata" node
        metadataItem - the "metadata" Metaschema node item containing the role
        index - the calling context information
      • visitLocation

        protected void visitLocation​(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item,
                                     gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem metadataItem,
                                     IIndexer index)
        Description copied from class: AbstractCatalogEntityVisitor
        Called when visiting a location in the "metadata" section of an OSCAL document.

        Can be overridden by classes extending this interface to support processing of the visited object.

        Overrides:
        visitLocation in class AbstractCatalogEntityVisitor<IIndexer,​Void>
        Parameters:
        item - the location Metaschema node item which is a child of the "metadata" node
        metadataItem - the "metadata" Metaschema node item containing the location
        index - the calling context information
      • visitParty

        protected void visitParty​(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item,
                                  gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem metadataItem,
                                  IIndexer index)
        Description copied from class: AbstractCatalogEntityVisitor
        Called when visiting a party in the "metadata" section of an OSCAL document.

        Can be overridden by classes extending this interface to support processing of the visited object.

        Overrides:
        visitParty in class AbstractCatalogEntityVisitor<IIndexer,​Void>
        Parameters:
        item - the party Metaschema node item which is a child of the "metadata" node
        metadataItem - the "metadata" Metaschema node item containing the party
        index - the calling context information
      • visitResource

        protected void visitResource​(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item,
                                     gov.nist.secauto.metaschema.model.common.metapath.item.IRootAssemblyNodeItem rootItem,
                                     IIndexer index)
        Description copied from class: AbstractCatalogEntityVisitor
        Called when visiting a resource in the "back-matter" section of an OSCAL document.

        Can be overridden by classes extending this interface to support processing of the visited object.

        Overrides:
        visitResource in class AbstractCatalogEntityVisitor<IIndexer,​Void>
        Parameters:
        item - the resource Metaschema node item which is a child of the "metadata" node
        rootItem - the resource Metaschema node item containing the party
        index - the calling context information