java.lang.Object
gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor
All Implemented Interfaces:
ICatalogVisitor<Boolean,gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context>

public class AddVisitor extends Object implements ICatalogVisitor<Boolean,gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context>
  • Constructor Details

  • Method Details

    • add

      public static boolean add(@NonNull Control control, @Nullable AddVisitor.Position position, @Nullable String byId, @Nullable gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine title, @NonNull List<Parameter> params, @NonNull List<Property> props, @NonNull List<Link> links, @NonNull List<ControlPart> parts)
      Apply the add directive.
      Parameters:
      control - the control target
      position - the position to apply the content or null
      byId - the identifier of the target or null
      title - a title to set
      params - parameters to add
      props - properties to add
      links - links to add
      parts - parts to add
      Returns:
      true if the modification was made or false otherwise
      Throws:
      ProfileResolutionEvaluationException - if a processing error occurred during profile resolution
    • visitCatalog

      public Boolean visitCatalog(Catalog catalog, gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context context)
      Description copied from interface: ICatalogVisitor
      Visit the provided catalog.
      Specified by:
      visitCatalog in interface ICatalogVisitor<Boolean,gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context>
      Parameters:
      catalog - the bound catalog object
      context - the visitor context
      Returns:
      a meaningful result from visiting the object
    • visitGroup

      public Boolean visitGroup(CatalogGroup group, gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context context)
      Description copied from interface: ICatalogVisitor
      Visit the provided group.
      Specified by:
      visitGroup in interface ICatalogVisitor<Boolean,gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context>
      Parameters:
      group - the bound group object
      context - the visitor context
      Returns:
      a meaningful result from visiting the object
    • visitControl

      public Boolean visitControl(Control control, gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context context)
      Description copied from interface: ICatalogVisitor
      Visit the provided control.
      Specified by:
      visitControl in interface ICatalogVisitor<Boolean,gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context>
      Parameters:
      control - the bound control object
      context - the visitor context
      Returns:
      a meaningful result from visiting the object
    • visitParameter

      public Boolean visitParameter(Parameter parameter, gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context context)
      Description copied from interface: ICatalogVisitor
      Visit the provided parameter.
      Specified by:
      visitParameter in interface ICatalogVisitor<Boolean,gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context>
      Parameters:
      parameter - the bound parameter object
      context - the visitor context
      Returns:
      a meaningful result from visiting the object
    • visitPart

      public boolean visitPart(ControlPart part, gov.nist.secauto.oscal.lib.profile.resolver.alter.AddVisitor.Context context)
      Visit the control part.
      Parameters:
      part - the bound part object
      context - the visitor context
      Returns:
      true if the removal was applied or false otherwise