Class FlatteningStructuringVisitor

All Implemented Interfaces:
ICatalogVisitor<IIndexer,Void>

  • Constructor Details

  • Method Details

    • instance

    • newDefaultResult

      protected Void newDefaultResult(IIndexer state)
      Specified by:
      newDefaultResult in class AbstractCatalogVisitor<IIndexer,Void>
    • aggregateResults

      protected Void aggregateResults(Void first, Void second, IIndexer state)
      Specified by:
      aggregateResults in class AbstractCatalogVisitor<IIndexer,Void>
    • visitCatalog

      public Void visitCatalog(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem catalogItem, IIndexer index)
      Overrides:
      visitCatalog in class AbstractCatalogEntityVisitor<IIndexer,Void>
    • visitGroup

      public Void visitGroup(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem 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.core.metapath.item.node.IAssemblyNodeItem 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.core.metapath.item.node.IAssemblyNodeItem item, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem 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.core.metapath.item.node.IAssemblyNodeItem item, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem 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 Module node item which is a child of the "metadata" node
      metadataItem - the "metadata" Module node item containing the role
      index - the calling context information
    • visitLocation

      protected void visitLocation(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem 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 Module node item which is a child of the "metadata" node
      metadataItem - the "metadata" Module node item containing the location
      index - the calling context information
    • visitParty

      protected void visitParty(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem 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 Module node item which is a child of the "metadata" node
      metadataItem - the "metadata" Module node item containing the party
      index - the calling context information
    • visitResource

      protected void visitResource(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, gov.nist.secauto.metaschema.core.metapath.item.node.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 Module node item which is a child of the "metadata" node
      rootItem - the resource Module node item containing the party
      index - the calling context information